-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 948 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
# run pnpm lint and pnpm format-check in parallel on every pull request and push to master branch
# also check for pnpm build after installing dependencies
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Install dependencies
run: |
pnpm install
pnpm build
- name: Lint
run: pnpm lint
- name: Format check
run: pnpm format-check