feat: reproducible CI test
Run the test workflow on explicit Node version 18, 20, 22, and 24 instead of the changing alias LTS/latest.
This commit is contained in:
parent
81020b22e5
commit
38514d82ca
1 changed files with 5 additions and 8 deletions
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
|
@ -11,25 +11,22 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [
|
node: [ "18", "20", "22", "24" ]
|
||||||
{"name": "LTS", "version": "lts/-2"},
|
|
||||||
{"name": "latest", "version": "latest"}
|
|
||||||
]
|
|
||||||
name: Node ${{ matrix.node.name }}
|
name: Node ${{ matrix.node.name }}
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- name: Setup node ${{ matrix.node.name }}
|
- name: Setup node v${{ matrix.node }}
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node.version }}
|
node-version: ${{ matrix.node }}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build:all
|
- run: npm run build:all
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: dist-node-${{ matrix.node.name }}
|
name: dist-node-v${{ matrix.node }}
|
||||||
path: dist
|
path: dist
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
- run: NODE_ENV=development npm run test:e2e
|
- run: NODE_ENV=development npm run test:e2e
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue