-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (28 loc) · 775 Bytes
/
Copy pathnode.js.yml
File metadata and controls
37 lines (28 loc) · 775 Bytes
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
name: React Quickstart CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Yarn install with caching
uses: bahmutov/npm-install@v1.6.0
- name: Run lint checks
run: yarn lint
- name: Run build
run: yarn build
- name: Run tests with coverage reports
run: yarn test:coverage
- name: Upload coverage report to codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}