Skip to content

Commit 570b3a0

Browse files
committed
Add github workflow to trigger build
1 parent 0d7fd1d commit 570b3a0

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

.github/workflows/build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: 🛠️ Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
actions: write
16+
contents: read
17+
18+
jobs:
19+
lint:
20+
name: ⬣ ESLint
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: ⬇️ Checkout repo
24+
uses: actions/checkout@v4
25+
26+
- name: ⎔ Setup node
27+
uses: actions/setup-node@v4
28+
with:
29+
cache: yarn
30+
cache-dependency-path: ./yarn.lock
31+
node-version: 20
32+
33+
- name: 📥 Install deps
34+
run: yarn
35+
36+
- name: 🔬 Lint
37+
run: yarn lint
38+
39+
typecheck:
40+
name: ʦ TypeScript
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: ⬇️ Checkout repo
44+
uses: actions/checkout@v4
45+
46+
- name: ⎔ Setup node
47+
uses: actions/setup-node@v4
48+
with:
49+
cache: yarn
50+
cache-dependency-path: ./yarn.lock
51+
node-version: 20
52+
53+
- name: 📥 Install deps
54+
run: yarn
55+
56+
- name: 🔎 Type check
57+
run: yarn typecheck
58+
59+
vitest:
60+
name: ⚡ Vitest
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: ⬇️ Checkout repo
64+
uses: actions/checkout@v4
65+
66+
- name: ⎔ Setup node
67+
uses: actions/setup-node@v4
68+
with:
69+
cache: yarn
70+
cache-dependency-path: ./yarn.lock
71+
node-version: 20
72+
73+
- name: 📥 Install deps
74+
run: yarn
75+
76+
- name: ⚡ Run vitest
77+
run: yarn test --coverage

0 commit comments

Comments
 (0)