-
Notifications
You must be signed in to change notification settings - Fork 435
65 lines (63 loc) · 1.98 KB
/
prchecks.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
name: PR Checks
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Commit lint
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Test
run: npm run test
- uses: codecov/codecov-action@v2
env:
CODE_COV_API_TOKEN: ${{ secrets.CODE_COV_API_TOKEN }}
with:
files: coverage/*.json
flags: unittests
name: react-carousel-codecov
fail_ci_if_error: true
verbose: true
lint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Lint
run: npm run lint
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm install
- name: Build
run: npm run build