-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (37 loc) · 1.03 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash
# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
mode: [debug, release]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Build StarlingMonkey
run: |
cmake -S . -B "cmake-build-${{matrix.mode}}" -DCMAKE_BUILD_TYPE=${{matrix.mode == 'debug' && 'Debug' || 'Release'}}
cmake --build cmake-build-${{matrix.mode}} --parallel 4 --target all integration-test-server
- name: StarlingMonkey E2E & Integration Tests
run: |
CTEST_OUTPUT_ON_FAILURE=1 ctest --test-dir cmake-build-${{matrix.mode}} -j4