-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (68 loc) · 2.23 KB
/
mac-workflow.yml
File metadata and controls
79 lines (68 loc) · 2.23 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
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
79
name: CI for Cmake Project - MacOS
on:
push:
branches:
- master
- ci
- test
- pkb
- qps
- sp
- staging
# pull_request:
# branches:
# - master
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-latest
timeout-minutes: 10
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/Team06/Code06/ -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build Project
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Run Unit Tests
working-directory: ${{runner.workspace}}/build
run: src/unit_testing/unit_testing
- name: Generate sys test 1 xml files
run: |
cd ./Team06/Tests06/systemtests/systemtest1
bash $GITHUB_WORKSPACE/Team06/Tests06/systemtests/systemtest1/ci.sh
shell: bash
- name: Generate sys test 2 xml files
run: |
cd ./Team06/Tests06/systemtests/systemtest2
bash $GITHUB_WORKSPACE/Team06/Tests06/systemtests/systemtest2/ci.sh
shell: bash
- name: Generate sys test 3 xml files
run: |
cd ./Team06/Tests06/systemtests/systemtest3
bash $GITHUB_WORKSPACE/Team06/Tests06/systemtests/systemtest3/ci.sh
shell: bash
- name: Generate sys test 4 xml files
run: |
cd ./Team06/Tests06/systemtests/systemtest4
bash $GITHUB_WORKSPACE/Team06/Tests06/systemtests/systemtest4/ci.sh
shell: bash
- name: Generate sys test 5 xml files
run: |
cd ./Team06/Tests06/systemtests/systemtest5
bash $GITHUB_WORKSPACE/Team06/Tests06/systemtests/systemtest5/ci.sh
shell: bash
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10" # install the python version needed
- name: Execute Python SystemTest Script
run: python ./Team06/Tests06/systemtests/check.py