-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.3 KB
/
ci_linux_gcc.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI Linux/GCC
on:
push:
pull_request:
defaults:
run:
shell: bash
jobs:
coverage:
runs-on: ubuntu-20.04
steps:
- name: Install LCOV
run: sudo apt install -y lcov
- uses: actions/checkout@v2
- name: Build project
run: |
cd build
make coverage
- name: Run tests
run: |
cd build
./fakeit_tests.exe
- name: Generate report
run: |
cd build
gcov *.o
lcov --directory . -c -o report.info
lcov --remove report.info '/usr/*' '*/tests/*' -o report_filtered.info
- name: Upload report
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/report_filtered.info
gcc-ubuntu-20-04:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build project
run: |
cd build
make all
- name: Run tests
run: |
cd build
./fakeit_tests.exe
gcc-ubuntu-18-04:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Build project
run: |
cd build
make all
- name: Run tests
run: |
cd build
./fakeit_tests.exe