-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.69 KB
/
gtest.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
name: UNIT_TEST
on: [push]
jobs:
Linux_select:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: prepare test files
run: |
chmod +x test/integration/prepare_test_file.sh
. test/integration/prepare_test_file.sh; prepare_test_file
- name: build
run: |
cmake -S . -B build -DCUSTOM_FLAGS="-D USE_SELECT -D ECHO"
cmake --build build
- name: run all unit tests on Linux
run: |
./build/unit_test test/integration/integration_test.conf 2>/dev/null
. test/integration/prepare_test_file.sh; clear_test_file
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "[UNIT_TEST] SELECT Ver. (on Linux)"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
macOS_select:
runs-on: macos-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: prepare test files
run: |
chmod +x test/integration/prepare_test_file.sh
. test/integration/prepare_test_file.sh; prepare_test_file
- name: build
run: |
cmake -S . -B build -DCUSTOM_FLAGS="-D USE_SELECT -D ECHO"
cmake --build build
- name: run all unit tests on macOS
run: |
./build/unit_test test/integration/integration_test.conf 2>/dev/null
. test/integration/prepare_test_file.sh; clear_test_file
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "[UNIT_TEST] SELECT Ver. (on macOS)"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}