Skip to content

Commit

Permalink
Merge pull request #615 from semantic-release/corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Mar 24, 2024
2 parents 0c12d5b + 5655b18 commit 148d97c
Show file tree
Hide file tree
Showing 4 changed files with 9,752 additions and 4,131 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: npm
node-version: lts/*
- run: npm clean-install
- run: npm audit signatures
- run: corepack npm audit signatures
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
38 changes: 25 additions & 13 deletions .github/workflows/test.yml
Expand Up @@ -8,14 +8,21 @@ 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.6.1
- 20
- 20.8.1
- 21
os:
- ubuntu-latest
runs-on: "${{ matrix.os }}"
Expand All @@ -27,22 +34,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: npm audit signatures
- run: npm run lint
- run: corepack npm audit signatures
- 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

0 comments on commit 148d97c

Please sign in to comment.