-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 878 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: test
on:
workflow_dispatch:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
pnpm: [7, 8]
steps:
- uses: actions/checkout@v4
- uses: ./
with:
node: ${{ matrix.node }}
pnpm: ${{ matrix.pnpm }}
cwd: 'test'
install-ignore-scripts: true
test-version-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
cwd: 'test'
node-file: '.node-version'
install-ignore-scripts: true
- name: check version
id: check-version
run: echo "VERSION=$(node -v)" >> $GITHUB_OUTPUT
- name: fail on wrong version (${{ steps.check-version.outputs.VERSION }})
if: ${{ steps.check-version.outputs.VERSION != 'v22.0.0' }}
run: exit 1