-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.37 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
on: push
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- run: make node_modules
- run: make lint
- run: make typecheck
- run: pnpm exec depcheck --ignore-bin-package
- uses: wagoid/commitlint-github-action@v6
- run: make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- run: make node_modules
- name: Simple test
run: make test
- name: Build for E2E
run: make build
- uses: actions/checkout@v4
with:
repository: mkobayashime/bookmarklets
path: repo-bookmarklets
- name: E2E
working-directory: ./repo-bookmarklets
run: >
corepack enable &&
make node_modules &&
pnpm add -D ../ && make lint.fix &&
git config user.email 'email' && git config user.name 'name' &&
git add . && git commit -m 'Use local cli' &&
make build &&
git add -N . && git diff --exit-code --stat