-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 899 Bytes
/
ci.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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16, 17, 18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: prebuild
run: pnpm install --frozen-lockfile
- name: test project
run: pnpm type:gen && pnpm test:all
- name: install Svelte3
run: pnpm i svelte@3 && pnpm i [email protected]
- name: test project with Svelte3
run: pnpm type:gen && pnpm test:all