Skip to content

Commit

Permalink
ci(verify): updated to modern conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Mar 16, 2024
1 parent cb0c6c4 commit e6e432d
Show file tree
Hide file tree
Showing 3 changed files with 9,520 additions and 4,041 deletions.
33 changes: 22 additions & 11 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 @@ -29,25 +37,28 @@ jobs:
node-version: "${{ matrix.node-version }}"
cache: npm
- run: npm clean-install
- 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
with:
node-version: "lts/*"
node-version-file: .nvmrc
cache: npm
- run: npm clean-install
- run: corepack npm audit signatures
- name: Ensure dependencies are compatible with the engines range
run: npx ls-engines
- run: npm run lint
# https://github.com/lirantal/lockfile-lint#readme
- name: Scan lockfile for security issues
run: npx lockfile-lint --path package-lock.json
- run: npm test

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

0 comments on commit e6e432d

Please sign in to comment.