-
Notifications
You must be signed in to change notification settings - Fork 50
60 lines (46 loc) · 1.28 KB
/
CI.yml
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
53
54
55
56
57
58
59
60
name: CI
on:
pull_request:
branches: [master]
concurrency: ci-${{ github.ref }}
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: P5-wrapper/setup-action@v1.0.6
- name: Check formatting
run: pnpm format:check
- name: Formatting issues detected (attempting fix...)
if: ${{ failure() }}
run: pnpm format
- name: Commit fixed formatting issues
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply fixed formatting issues
branch: ${{ github.head_ref }}
lint:
runs-on: ubuntu-latest
steps:
- uses: P5-wrapper/setup-action@v1.0.6
- name: Lint
run: pnpm lint
- name: Linting issues detected (attempting fix...)
if: ${{ failure() }}
run: pnpm lint:fix
- name: Commit fixed linting issues
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply fixed linting issues
branch: ${{ github.head_ref }}
test:
runs-on: ubuntu-latest
steps:
- uses: P5-wrapper/setup-action@v1.0.6
- name: Test
run: pnpm test
build:
runs-on: ubuntu-latest
steps:
- uses: P5-wrapper/setup-action@v1.0.6
- name: Build
run: pnpm build