Skip to content

Commit

Permalink
ci(verify): updated to follow modern conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Mar 22, 2024
1 parent 0236339 commit f271c54
Show file tree
Hide file tree
Showing 3 changed files with 9,743 additions and 4,123 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ name: Test
types:
- opened
- synchronize

permissions:
contents: read

env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always

jobs:
test_matrix:
strategy:
Expand All @@ -27,22 +35,27 @@ jobs:
node-version: "${{ matrix.node-version }}"
cache: npm
- run: npm clean-install
- name: Ensure dependencies are compatible with the engines range
run: npx ls-engines
- run: "npm run test:ci"
test:
- run: corepack npm audit signatures
- run: npm test

test_dev:
runs-on: ubuntu-latest
needs: test_matrix
if: ${{ always() }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
- name: "Use development Node.js version"
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: lts/*
node-version-file: .nvmrc
cache: npm
- run: npm clean-install
- run: corepack npm audit signatures
- run: npm run lint
- run: npm test

test:
runs-on: ubuntu-latest
needs: test_matrix
if: ${{ !cancelled() }}
steps:
- name: All matrix versions passed
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
Expand Down
Loading

0 comments on commit f271c54

Please sign in to comment.