Skip to content

Commit

Permalink
Merge pull request #766 from semantic-release/next-major
Browse files Browse the repository at this point in the history
next major
  • Loading branch information
travi committed Mar 16, 2024
2 parents c7f9b0a + adb1ded commit 702c68a
Show file tree
Hide file tree
Showing 5 changed files with 9,932 additions and 4,398 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ name: Test
types:
- opened
- synchronize

permissions:
contents: read

env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always

jobs:
test_matrix:
strategy:
matrix:
node-version:
- 18.17.0
- 20.0.0
- 20.8.1
- 20
- 21
os:
- ubuntu-latest
runs-on: "${{ matrix.os }}"
Expand All @@ -27,18 +35,30 @@ jobs:
node-version: "${{ matrix.node-version }}"
cache: npm
- run: npm clean-install
- run: "npm run test:ci"
test:
- run: npm test

test_dev:
runs-on: ubuntu-latest
needs: test_matrix
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: npm audit signatures
- name: Ensure dependencies are compatible with the version of node
run: npx ls-engines
- run: npm run lint
- 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
- name: Some matrix version failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

0 comments on commit 702c68a

Please sign in to comment.