-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (46 loc) · 1.64 KB
/
common_function_test.yml
File metadata and controls
53 lines (46 loc) · 1.64 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
# This is a workflow to get source code and run tests of common functions
name: CommonFunctionTests
# Controls when the action will run. Workflow runs when manually triggered using the UI or API.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows you to run this workflow every time a commit is pushed to the repository
push:
branches:
- '**'
paths:
- 'F01_Common_Functions/**'
- '.github/workflows/common_function_test.yml'
- '.github/workflows/taskRunner/common_functions/run_gtests.sh'
# Allows you to run this workflow every time a pull request is opened or updated
pull_request:
branches:
- '**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Job
GoogleTests:
# Runner
runs-on: ubuntu-latest
steps:
# Step: Checkout source code
- name: Checkout source code
uses: actions/checkout@main
# Step: Setup CMake
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1.14.1
# Step: Tool Versions
- name: Tool Versions
run: cmake --version
# Step: Build all the tests
- name: Build all the GTests
run: |
mkdir build
cd build
cmake ..
cmake --build .
# Step: Run all test executables in the build/bin directory
- name: Run all GTests
run: |
chmod +x .github/workflows/taskRunner/common_functions/run_gtests.sh
.github/workflows/taskRunner/common_functions/run_gtests.sh