Check and Windows preview / check (anvil) (push) Successful in 39s
Check and Windows preview / check (crucible) (push) Successful in 44s
Check and Windows preview / check (lathe) (push) Successful in 40s
Check and Windows preview / check (patina) (push) Successful in 55s
Check and Windows preview / check (rivet) (push) Successful in 46s
Check and Windows preview / check (temper) (push) Successful in 44s
Check and Windows preview / check (weld) (push) Successful in 1m18s
Check and Windows preview / previews (push) Successful in 55s
Check and Windows preview / windows (push) Successful in 1m24s
Every product adds a fixture to tools/editor-check, but only the CI previews job checked its formatting, so an unformatted fixture passed the local product check and failed CI.
25 lines
1.2 KiB
Python
25 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""Check one product without compiling the other product's engine or wrapper."""
|
|
import argparse
|
|
import subprocess
|
|
from plugin_catalog import ROOT, catalog
|
|
|
|
products = catalog()
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument("--plugin", required=True, choices=products)
|
|
args = parser.parse_args()
|
|
product = products[args.plugin]
|
|
packages = [part for name in product["packages"] for part in ["-p", name]]
|
|
commands = [
|
|
["cargo", "fmt", *packages, "--", "--check"],
|
|
["cargo", "test", *packages, "--locked"],
|
|
["cargo", "clippy", *packages, "--all-targets", "--locked", "--", "-D", "warnings"],
|
|
["cargo", "fmt", "--manifest-path", product["manifest"], "--", "--check"],
|
|
# Every product has a fixture in the editor renderer; CI checks its formatting too.
|
|
["cargo", "fmt", "--manifest-path", "tools/editor-check/Cargo.toml", "--", "--check"],
|
|
["cargo", "test", "--manifest-path", product["manifest"], "--locked"],
|
|
["cargo", "clippy", "--manifest-path", product["manifest"], "--all-targets", "--locked", "--", "-D", "warnings"],
|
|
]
|
|
for command in commands:
|
|
subprocess.run(command, cwd=ROOT, check=True)
|