Automatically format ci pipeline specs with prettier (#2229)

This commit is contained in:
Mira Ressel
2023-02-27 13:09:58 +01:00
committed by GitHub
parent 0ce339be67
commit 590387a01c
8 changed files with 194 additions and 187 deletions
+21 -21
View File
@@ -3,26 +3,26 @@
# It's more like a check, but we want to run this job with real tests in parallel
find-fail-ci-phrase:
stage: test
stage: test
variables:
CI_IMAGE: "paritytech/tools:latest"
ASSERT_REGEX: "FAIL-CI"
GIT_DEPTH: 1
CI_IMAGE: "paritytech/tools:latest"
ASSERT_REGEX: "FAIL-CI"
GIT_DEPTH: 1
extends:
- .kubernetes-env
script:
- set +e
- rg --line-number --hidden --type rust --glob '!{.git,target}' "$ASSERT_REGEX" .; exit_status=$?
- if [ $exit_status -eq 0 ]; then
echo "$ASSERT_REGEX was found, exiting with 1";
exit 1;
- if [ $exit_status -eq 0 ]; then
echo "$ASSERT_REGEX was found, exiting with 1";
exit 1;
else
echo "No $ASSERT_REGEX was found, exiting with 0";
exit 0;
echo "No $ASSERT_REGEX was found, exiting with 0";
exit 0;
fi
test-linux-stable:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
@@ -38,7 +38,7 @@ test-linux-stable:
- time cargo nextest run --all --release --locked --run-ignored all
test-doc:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
@@ -50,7 +50,7 @@ test-doc:
- time cargo test --doc
check-runtime-benchmarks:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
@@ -61,14 +61,14 @@ check-runtime-benchmarks:
- time cargo check -p parachain-template-node --features runtime-benchmarks
cargo-check-try-runtime:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
# this is an artificial job dependency, for pipeline optimization using GitLab's DAGs
needs:
- job: check-runtime-benchmarks
artifacts: false
- job: check-runtime-benchmarks
artifacts: false
script:
# Check that the node will compile with `try-runtime` feature flag.
- time cargo check --all --features try-runtime
@@ -76,24 +76,24 @@ cargo-check-try-runtime:
- time cargo check -p parachain-template-node --features try-runtime
check-rustdoc:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
variables:
SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: "-Dwarnings"
SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: "-Dwarnings"
script:
- time cargo +nightly doc --workspace --all-features --verbose --no-deps
cargo-check-benches:
stage: test
stage: test
extends:
- .docker-env
- .common-refs
# this is an artificial job dependency, for pipeline optimization using GitLab's DAGs
needs:
- job: check-rustdoc
artifacts: false
- job: check-rustdoc
artifacts: false
script:
- time cargo check --all --benches