-
Notifications
You must be signed in to change notification settings - Fork 60
38 lines (33 loc) · 935 Bytes
/
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
name: PR Checks
on:
pull_request:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
commit-lint:
runs-on: ubuntu-latest
name: Lint commit message
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
install-lint-build:
runs-on: ubuntu-latest
name: Install, Lint, Build
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: ./.github/actions/nodejs
name: Install dependencies
- run: yarn run lint
- run: yarn run build:prod
- run: yarn run size