-
-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (28 loc) · 694 Bytes
/
Copy pathtest.yml
File metadata and controls
30 lines (28 loc) · 694 Bytes
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
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
node: [22, 20]
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
with:
version: latest
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: PNPM Install
run: pnpm install --no-frozen-lockfile
- name: Pack and Unpack
run: pnpm pack && tar -xvzf *.tgz
- name: Test
run: pnpm test
- name: Delete /package and *.tgz
run: rm -rf package && rm -rf *.tgz
- name: Publish Dry Run
run: pnpm publish --dry-run --no-git-checks