generated from GabrielGuedess/NextJs-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 833 Bytes
/
coverage.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
name: Codecov
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.actor != 'github-actions[bot]' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3.3.0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn
- name: Test
run: yarn test -u
- name: Codecov
uses: codecov/codecov-action@v3