Skip to content

Commit 0424348

Browse files
committed
chore: CI
1 parent 44b4c33 commit 0424348

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v3
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: lts/*
18+
cache: pnpm
19+
20+
- name: Install
21+
run: pnpm install
22+
23+
- name: Lint
24+
run: pnpm run check:fix
25+
26+
build:
27+
strategy:
28+
matrix:
29+
os: [ubuntu-latest]
30+
runs-on: ${{ matrix.os }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: pnpm/action-setup@v3
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: lts/*
37+
cache: pnpm
38+
39+
- name: Install
40+
run: pnpm install
41+
42+
- name: Build
43+
run: pnpm run build:production
44+
45+
typecheck:
46+
strategy:
47+
matrix:
48+
os: [ubuntu-latest]
49+
runs-on: ${{ matrix.os }}
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: pnpm/action-setup@v3
53+
- uses: actions/setup-node@v4
54+
with:
55+
node-version: lts/*
56+
cache: pnpm
57+
58+
- name: Install
59+
run: pnpm install
60+
61+
- name: Typecheck
62+
run: tsc

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ tests/
99
*.iml
1010
dev/perf/screenshot*
1111
.DS_store
12-
.github/workflows/*
13-
!.github/workflows/package-and-publish.yml
1412
dist/
1513
.eslintcache
1614
electron/
15+
data/

0 commit comments

Comments
 (0)