-
Notifications
You must be signed in to change notification settings - Fork 20
43 lines (42 loc) · 1.07 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
40
41
42
43
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cmake
run: sudo apt install -y cmake
- name: configure
run: ./configure && ./configure
- name: make
run: make
working-directory: build
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cmake and googletest
run: sudo apt install -y cmake libgmock-dev lcov
- name: configure
run: ./configure && CMAKE_OPTIONS="-DOPTION_ENABLE_COVERAGE=On" ./configure
- name: tests
run: make test
working-directory: build
check:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install cmake
run: sudo apt install -y cmake cppcheck clang-tidy
- name: configure
run: ./configure && ./configure
- name: check
run: make check-all
working-directory: build