Skip to content

Commit

Permalink
chore(CI): add ci-ok job
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei committed Oct 22, 2024
1 parent 52720ea commit 6ba185f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Run test
run: pnpm run test

code-check:
check:
name: Code check (${{ matrix.script }})
runs-on: ubuntu-latest

Expand All @@ -62,3 +62,20 @@ jobs:

- name: Run ${{ matrix.script }}
run: pnpm run ${{ matrix.script }}

ci-ok:
name: CI OK
runs-on: ubuntu-latest
if: always()
needs: [test, check]
env:
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
steps:
- name: Check for failure
run: |
echo $FAILURE
if [ "$FAILURE" = "false" ]; then
exit 0
else
exit 1
fi

0 comments on commit 6ba185f

Please sign in to comment.