-
Notifications
You must be signed in to change notification settings - Fork 19
39 lines (34 loc) · 994 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
name: Continuous Integration
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
# See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
push:
branches:
- main*
pull_request:
branches:
- main*
jobs:
build:
name: Full Build (node ${{ matrix.node_version }})
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 20.x
# https://stackoverflow.com/questions/61070925/github-actions-disable-auto-cancel-when-job-fails
fail-fast: false
steps:
# using `v1` because of: https://github.com/actions/checkout/issues/246
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run ci