-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.11 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
53
54
55
56
name: CI
on:
pull_request:
types: [opened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: pnpm setup composite
uses: ./.github/actions/pnpm-setup
- name: Install Deps
run: pnpm install --frozen-lockfile
build:
name: Build
runs-on: ubuntu-latest
needs:
- setup
steps:
- uses: actions/checkout@v3
- name: pnpm setup composite
uses: ./.github/actions/pnpm-setup
- name: build
run: pnpm build
lint:
name: lint
runs-on: ubuntu-latest
needs:
- setup
steps:
- uses: actions/checkout@v3
- name: pnpm setup composite
uses: ./.github/actions/pnpm-setup
- name: lint
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
eslint_flags: "--max-warnings=0 src/**/{*.js,*.jsx,*.ts,*.tsx,}"
fail_on_error: "true"
reporter: github-pr-review