-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.05 KB
/
workflow.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
name: Test and Code Coverage
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install jq
run: |
sudo apt-get update -y
sudo apt-get install -y jq
command -v jq
- name: Install kcov
run: |
sudo apt-get install -y kcov
- name: Install shellspec
run: |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH"
curl -fsSL https://git.io/shellspec | sh -s master -y
echo "--color" > $HOME/.shellspec
- name: Generate coverage report
run: |
make all
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # required for private repos
directory: coverage
flags: unittests # optional
name: codecov-wild # optional
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)