forked from afterhourseng/serial_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.33 KB
/
makefile.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
52
53
54
55
56
name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install SDL2
run: sudo apt-get install -y libsdl2-dev
- run: ./scripts/build.sh
test:
permissions:
pull-requests: write
repository-projects: read
contents: read
runs-on: ubuntu-latest
steps:
- name: 'Load testing tools'
run: sudo gem install ceedling
- name: 'run tests'
uses: actions/checkout@v4
with:
submodules: true
- run: ./scripts/test.sh
analysis:
permissions:
pull-requests: write
repository-projects: read
contents: read
runs-on: ubuntu-latest
steps:
- name: 'Load testing tools'
run: |
sudo gem install ceedling
pip install gcovr
- name: 'run results process'
uses: actions/checkout@v4
with:
submodules: true
- run: ./scripts/process_results.sh
- name: Analysis Comment
uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
with:
filePath: ./build/test/process/results.md
comment_tag: analysis
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}