-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (49 loc) · 1.23 KB
/
quality-test.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
44
45
46
47
48
49
50
51
name: Code formatting quality and testing
on:
push:
branches:
- main
pull_request:
branches:
- main
pull_request_review:
types:
- submitted
jobs:
Format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install clang-format
run: sudo apt install clang-format
- name: Run clang-format
run: make format-dry-run
Tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM
run: sudo apt install llvm-12 llvm-12-dev
- name: Install clang-tidy
run: sudo apt install clang-tidy
- name: Run clang-tidy
run: make tidy
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install LLVM and LCOV
run: sudo apt install llvm-12 llvm-12-dev lcov
- name: Build debug executable
run: CXX=clang++ make build GCOV=1
- name: Run tests_runner
run: make coverage
- name: "Upload coverage report"
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: compiler/tests/reports
retention-days: 5