Skip to content

Commit

Permalink
fix ci-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Nechiporenko authored and Oleg Nechiporenko committed Feb 26, 2025
1 parent 961f892 commit b6926b0
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20, 22]
node: [18, 20, 22]
chai: [4, 5]

steps:
Expand All @@ -56,11 +56,39 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: pnpm
run: node -v
- name: Install Dependencies
run: |
pnpm install --frozen-lockfile
pnpm i -D chai@${{ matrix.chai }}
- name: Lint
run: pnpm lint
- name: Run Tests
run: pnpm test
run: pnpm test

validate-success:
needs: ["tries"]
runs-on: ubuntu-latest
outputs:
success: ${{ steps.set-output.outputs.success }}
steps:
- id: set-output
run: echo "success=true" >> $GITHUB_OUTPUT

notify-success:
name: CI pipeline succeeded
needs: ["validate-success"]
if: always() # Always run, so we never skip this required check
runs-on: ubuntu-latest
steps:
- name: Note Pipeline Passed
run: |
msgPrefix="Pipeline #${{ github.run_id }} finished"
passed="${{ needs.validate-success.outputs.success }}"
if [[ "$passed" == "true" ]]; then
echo "${msgPrefix}, PR passed all tests."
exit 0
else
echo "${msgPrefix}, but with failures. Check left sidebar summary to see which jobs failed."
exit 1
fi

0 comments on commit b6926b0

Please sign in to comment.