Skip to content

Commit

Permalink
[WIP] moving Find FAIL-CI check to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantcornholio committed Aug 16, 2024
1 parent 069f8a6 commit c11efdb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-find-fail-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check for FAIL-CI

on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review, labeled ]

jobs:
check-fail-ci:
runs-on: ubuntu-latest
container:
image: "paritytech/tools:latest"
# paritytech/tools uses "nonroot" user by default, which doesn't have enough
# permissions to create GHA context
options: --user root
steps:
- name: Fetch latest code
uses: actions/checkout@v4
- name: Check
run: |
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;
else
echo "No $ASSERT_REGEX was found, exiting with 0";
exit 0;
fi
env:
ASSERT_REGEX: "FAIL-CI"
GIT_DEPTH: 1
20 changes: 0 additions & 20 deletions .gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,6 @@ check-runtime-migration-rococo:
URI: "wss://rococo-try-runtime-node.parity-chains.parity.io:443"
SUBCOMMAND_EXTRA_ARGS: "--no-weight-warnings"

find-fail-ci-phrase:
stage: check
variables:
CI_IMAGE: "paritytech/tools:latest"
ASSERT_REGEX: "FAIL-CI"
GIT_DEPTH: 1
extends:
- .kubernetes-env
- .test-pr-refs
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;
else
echo "No $ASSERT_REGEX was found, exiting with 0";
exit 0;
fi

check-core-crypto-features:
stage: check
extends:
Expand Down

0 comments on commit c11efdb

Please sign in to comment.