-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 998 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
39
40
41
42
43
44
45
46
47
48
49
name: Test
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install Node.js
id: install-node
uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
- name: PNPM Install
id: install-pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ vars.PNPM_VERSION }}
run_install: true
- name: Clean generated assets
run: rm -rf ./dist ./types
- name: Run code checks
run: pnpm check
- name: Run tests
run: pnpm test
- name: Build & generate examples
run: pnpm examples
- name: Save examples
uses: actions/upload-artifact@v4
with:
name: examples
path: examples
retention-days: 3