-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.02 KB
/
c-cpp.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
name: C/C++ CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install valgrind
run: sudo apt-get install -y valgrind
- name: Install gcovr
run: sudo apt-get install python3-setuptools && sudo pip3 install git+https://github.com/gcovr/gcovr.git
- name: Install boost
run: sudo apt-get install libboost-all-dev
- name: Install libpq
run: sudo apt-get install libpq-dev postgresql-server-dev-all
- name: Install cppcheck
run: sudo apt-get install -y cppcheck
- name: Run Linter For Server
run: cd server/src && cppcheck *.cpp
- name: Run Linter For Scraper
run: cd archiver/src && cppcheck *.cpp
- name: Configure
run: ./configure.sh
- name: Make
run: cd build && make
- name: Test
run: cd build && make coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: build/coverage