-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (38 loc) · 997 Bytes
/
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
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 nix
uses: nixbuild/nix-quick-install-action@v29
- name: Run clang-format
run: nix-shell --run 'make format-dry-run'
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install nix
uses: nixbuild/nix-quick-install-action@v29
- name: Build debug executable
run: nix-shell --run 'CXX=clang++ make build GCOV=1'
- name: Run tests_runner
run: nix-shell --run 'make coverage'
- name: "Upload coverage report"
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: compiler/tests/reports
retention-days: 5