-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 912 Bytes
/
codecov.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
name: Run Test and Code Coverage
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-and-code-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Depedencies
run: yarn install
- name: Run Test
run: yarn test
- name: Run Code Coverage
run: yarn cov
- name: Commit and Push Changes
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Codecov"
git add README.md
git diff --cached --exit-code || git commit -m "Update codecov badge"
git push origin master