-
-
Notifications
You must be signed in to change notification settings - Fork 23
50 lines (47 loc) · 1.07 KB
/
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
42
43
44
45
46
47
48
49
50
name: CI
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'pkg/**'
- '.github/workflows/ci.yml'
- '!**.md'
pull_request:
paths:
- 'pkg/**'
- '.github/workflows/ci.yml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
fail-fast: false
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: Install dependencies
run: pnpm install
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Lint
run: pnpm lint
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Typecheck
run: pnpm typecheck
- name: Run tests
run: pnpm test