-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (55 loc) · 1.42 KB
/
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
55
56
57
58
59
name: CI
on:
- push
- pull_request
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
strategy:
fail-fast: false
matrix:
node:
- '18'
- '20'
- '22'
platform:
- macos-latest
- ubuntu-latest
name: 'Node.js ${{matrix.node}} / ${{matrix.platform}}'
runs-on: ${{matrix.platform}}
steps:
- name: Configure Git
run: |
git config --global core.autocrlf false
git config --global user.name "Carlo Dapor (bot)"
git config --global user.email "catull@gmail.com"
- name: Checkout Commit
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
cache: 'pnpm'
- name: Install pnpm
run: npm add --global pnpm
- name: pnpm install
run: pnpm install
- name: Audit
run: pnpm audit
- name: Run pre build
run: pnpm run prebuild
- name: Run lint on sources
run: pnpm run lint
- name: Run lint on tests
run: pnpm run lint:test
- name: Run build
run: pnpm run build
- name: Run prod test suites
run: pnpm run test:prod
- name: Run generation of dist package.json
run: pnpm run dist:package.json
- name: Run fornat dist sources
run: pnpm run format:dist