-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.38 KB
/
test.yml
File metadata and controls
52 lines (43 loc) · 1.38 KB
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
52
name: Test
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y gcc libcunit1-dev valgrind xsltproc lcov
- name: Grant Execute Permissions for scripts
run: |
chmod +x ./build.sh
chmod +x ./test.sh
- name: Run Tests
if: always() # Always run the tests
run: ./test.sh
- name: Upload Test Reports
if: always() # Ensures the test reports are uploaded regardless of whether the tests fail the build
uses: actions/upload-artifact@v4
with:
name: test-reports
path: ./build/test-reports/*
- name: Upload Coverage Reports
if: always() # Ensures the coverage report is uploaded regardless of whether the tests fail the build
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./build/coverage-report/*
- name: Upload Valgrind Reports
if: always() # Ensures the valgrind reports are uploaded regardless of whether the tests fail the build
uses: actions/upload-artifact@v4
with:
name: valgrind-reports
path: ./build/valgrind-reports/*