-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request]
permissions:
contents: read
pull-requests: write
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: sudo apt-get install lcov
- name: Run tests
run: |
cmake -Bbuild && cd build
cmake --build .
make test
- name: Run tests on main for coverage comparison
run: |
git checkout main
cmake -Bbuild-old && cd build-old
cmake --build .
make test
if: ${{ github.event_name == 'pull_request' }}
- name: Coverage
uses: romeovs/[email protected]
with:
lcov-file: build/coverage.info
lcov-base: build-old/coverage.info
delete-old-comments: true
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'pull_request' }}