-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (58 loc) · 1.72 KB
/
on-pull-request.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
61
62
63
64
65
66
67
68
name: QS
on:
pull_request:
branches:
- master
jobs:
qs:
name: 'QS'
runs-on: ubuntu-latest
container: cypress/browsers:node14.15.0-chrome86-ff82
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Install (node_modules))"
uses: cypress-io/github-action@v2
with:
runTests: false
cache-key: node-on-${{ runner.os }}-hash-${{ hashFiles('**/package-lock.json') }}
- name: "License check"
id: copyleft
run: npm run licenses
- name: "Lint checking (ESLint)"
id: eslint
run: npm run lint:report
continue-on-error: true
- name: "Code linting (ESLint)"
uses: ataylorme/eslint-annotate-action@f92355332c64bc5c2d474cc6555edcb1315fdd12
if: github.actor != 'dependabot[bot]'
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
report-json: lint.json
- name: Upload ESLint report
uses: actions/upload-artifact@v2
if: always()
with:
name: lint.json
path: lint.json
build:
name: 'Build'
timeout-minutes: 15
runs-on: ubuntu-latest
if: github.event.pull_request.base.ref == 'master'
container: cypress/browsers:node14.15.0-chrome86-ff82
needs: qs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Install all (node_modules) and build (dev)"
uses: cypress-io/github-action@v2
with:
runTests: false
build: npm run build
cache-key: node-on-${{ runner.os }}-hash-${{ hashFiles('**/package-lock.json') }}
- name: Cache build folder
uses: actions/cache@v2
with:
path: dist
key: ${{ github.sha }}