Skip to content

Commit d1745df

Browse files
authored
chore: add CI checks (#3)
1 parent 3b85b78 commit d1745df

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
with:
17+
filter: tree:0
18+
fetch-depth: 0
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
25+
with:
26+
node-version: '23'
27+
cache: 'pnpm'
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Set shas
33+
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v.4.3.3
34+
35+
- name: Typecheck
36+
run: pnpm nx affected -t typecheck
37+
38+
- name: Build
39+
run: pnpm nx affected -t build
40+
41+
- name: Lint
42+
run: pnpm nx affected -t lint
43+
44+
- name: Test
45+
run: pnpm nx affected -t test

0 commit comments

Comments
 (0)