-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (42 loc) · 971 Bytes
/
ci.yaml
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
51
52
53
54
name: CI workflow
on:
push:
branches:
- master
pull_request:
paths-ignore:
- '.vscode/**'
- 'LICENSE'
- 'README.md'
workflow_dispatch:
env:
CI: "true"
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: ['20.17.0']
pnpm: ['9.11.0']
name: "Build: ${{ matrix.os }}, Node.js ${{ matrix.node }}"
steps:
- name: Prepare git
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup (Node.js)
uses: ./.github/actions/setup-node
with:
node-version: ${{ matrix.node }}
pnpm-version: ${{ matrix.pnpm }}
- name: Transpile TS to JS
run: pnpm build
- name: Lint code
run: pnpm lint:ci
- name: Run unit tests
run: pnpm test:unit