-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1 KB
/
Copy pathcodecov.yaml
File metadata and controls
44 lines (37 loc) · 1 KB
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
name: Codecov
on:
push:
branches:
- main
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org
- name: Restore yarn cache if available
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Generate coverage reports
run: |
yarn test:ci
env:
CI: true
- name: Upload coverage
uses: codecov/codecov-action@v3