-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (29 loc) · 908 Bytes
/
tests.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: Build and run test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt install -y meson ninja-build lcov gcovr libglib2.0-dev libgranite-dev libgtk-3-dev libcairo2-dev meson valac libsoup2.4-dev libsoup-gnome2.4-dev libxmlbird-dev gettext
- uses: actions/checkout@v3
- name: Configure meson
run: meson setup build
- name: Build
run: ninja -C build
- name: Test
run: ninja -C build test
- name: Install gcovr
run: pip install git+https://github.com/gcovr/gcovr.git --break-system-packages
- name: Coverage
run: ./coverage.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}