Skip to content

Commit 6d508ea

Browse files
authored
🎬 actions (#459)
1 parent b861c07 commit 6d508ea

File tree

3 files changed

+73
-52
lines changed

3 files changed

+73
-52
lines changed

β€Ž.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: "🏭 ci"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
name: "🧢 lint"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: "πŸ“š checkout"
15+
uses: actions/checkout@v4
16+
- name: "🟒 node"
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
cache: "npm"
21+
- name: "πŸ“¦ install"
22+
run: npm ci
23+
- name: "🧢 lint"
24+
run: npm run lint
25+
format:
26+
name: "πŸ’Ύ format"
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: "πŸ“š checkout"
30+
uses: actions/checkout@v4
31+
- name: "🟒 node"
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22
35+
cache: "npm"
36+
- name: "πŸ“¦ install"
37+
run: npm ci
38+
- name: "πŸ’Ύ format"
39+
run: npm run format
40+
typecheck:
41+
name: "🟦 typecheck"
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: "πŸ“š checkout"
45+
uses: actions/checkout@v4
46+
- name: "🟒 node"
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: 22
50+
cache: "npm"
51+
- name: "πŸ“¦ install"
52+
run: npm ci
53+
- name: "🟦 typecheck"
54+
run: npm run typecheck
55+
test:
56+
name: "πŸ§ͺ test"
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: "πŸ“š checkout"
60+
uses: actions/checkout@v4
61+
- name: "🟒 node"
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: 22
65+
cache: "npm"
66+
- name: "πŸ“¦ install"
67+
run: npm ci
68+
- name: "πŸ§ͺ test"
69+
run: npm run test
70+
- name: "β˜‚οΈ coverage"
71+
uses: codecov/codecov-action@v5
72+
with:
73+
token: ${{ secrets.CODECOV_TOKEN }}

β€Ž.github/workflows/style.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

β€Ž.github/workflows/test.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
Β (0)