-
Notifications
You must be signed in to change notification settings - Fork 60
54 lines (47 loc) · 1.19 KB
/
on-pull.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
name: PR Checks
on:
pull_request:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
jobs:
one_run:
name: Cancel Previous Runs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ secrets.GHACTIONS }}
commit_lint:
runs-on: ubuntu-latest
name: Lint commit message
steps:
- uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3
install:
runs-on: ubuntu-latest
name: Dependency installation
needs: one_run
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
name: Install dependencies
lint:
runs-on: ubuntu-latest
name: Lint code
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
- run: yarn run lint
build:
runs-on: ubuntu-latest
name: Build and bundle size check
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/nodejs
- uses: ./.github/actions/build