-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (36 loc) · 1000 Bytes
/
build-test.yml
File metadata and controls
49 lines (36 loc) · 1000 Bytes
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: Build & Test
on:
push:
branches-ignore: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build & Test
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
node_version: [lts/-1, lts/*, latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
cache: pnpm
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Lint code
run: pnpm run lint
- name: Build CLI
run: pnpm run build
- name: Test CLI commands (unit & integration)
run: pnpm run test:integration
- name: Test CLI commands (e2e)
run: pnpm run test:e2e