Skip to content

Commit af64c3c

Browse files
authored
Merge pull request #3 from btrustteam/ci/pr-checks
Add CI workflow to run type checks, lint, build, and tests on PRs
2 parents 425ca72 + c7261d0 commit af64c3c

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
cache: npm
18+
19+
- run: npm ci
20+
21+
- name: Type check
22+
run: npx tsc --noEmit
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Test
31+
run: npx vitest run

0 commit comments

Comments
 (0)