-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 949 Bytes
/
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
40
41
42
name: Continuous Integration
on:
push:
branches:
- main
paths-ignore:
- "**/coverage.svg"
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: Upload coverage artifact
uses: actions/upload-artifact@master
with:
name: lcov-info-pr
path: build/coverage.info
coverage:
uses: ./.github/workflows/coverage.yml
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: GoogleCloudPlatform/[email protected]
file: ./build/coverage.info
if: ${{ github.event_name == 'push' }}