-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (72 loc) · 2.06 KB
/
main.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Main
on: [ push, pull_request ]
jobs:
Check_Scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: shellcheck -x $(find . -name "*.bash" -o -name "*.sh")
# If the following test fails, it means the number of examples have changed
# Modify this test, and the list of examples in job 'Compilation'
Compilation_Precheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: test "$(find examples -mindepth 1 -maxdepth 1 | wc -l)" -eq 8
Compilation:
runs-on: ubuntu-latest
needs: [ Check_Scripts, Compilation_Precheck ]
strategy:
fail-fast: false
matrix:
folder: [
"1-hello-world",
"2-sum10",
"3-fibonacci",
"4-fib-gcc",
"5-subdirs",
"6-debug",
"7-libmymath",
"8-libquotes"
]
name: "Comp: On examples/${{ matrix.folder }}"
steps:
- uses: actions/checkout@v3
- run: ../../tests/compilation/all.bash
shell: bash
working-directory: examples/${{ matrix.folder }}
Configuration:
runs-on: ubuntu-latest
needs: [ Check_Scripts ]
name: Configuration on mini-project
steps:
- uses: actions/checkout@v3
- run: ../all.bash
shell: bash
working-directory: tests/configuration/mini-project
Error_Handling:
runs-on: ubuntu-latest
needs: [ Check_Scripts ]
name: Error_Handling on mini-project2
steps:
- uses: actions/checkout@v3
- run: ../all.bash
shell: bash
working-directory: tests/error-handling/mini-project2
Make_Init:
runs-on: ubuntu-latest
needs: [ Check_Scripts ]
name: Testing `make init`
steps:
- uses: actions/checkout@v3
- run: ./tests/init/all.bash
shell: bash
Readme_Check_Help:
runs-on: ubuntu-latest
needs: [ Check_Scripts ]
name: Readme Check Help on mini-project4
steps:
- uses: actions/checkout@v3
- run: ../all.bash
shell: bash
working-directory: tests/readme-check-help/mini-project4