-
Notifications
You must be signed in to change notification settings - Fork 40
46 lines (45 loc) · 1.24 KB
/
run-tests.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
name: Run OpenSupaplex Tests
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
run-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Prepare build environment
run: |
cd tests
./ci-prepare.sh
shell: bash
- name: Build OpenSupaplex
run: |
cd tests
./ci-build.sh
shell: bash
- id: run_tests
name: Run tests
run: |
cd tests
# Save the exit code for later, in case it failed, don't fail now.
# If it failed because tests failed, at least it will upload the results.
echo "::set-output name=run_tests_exit_code::0"
(./run-tests.rb ./OpenSupaplex-tests/OpenSupaplex > test-results.log \
|| echo "::set-output name=run_tests_exit_code::1")
shell: bash
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: tests/test-results.log
- name: Print test results
run: |
cd tests
cat test-results.log
shell: bash
- name: Finish job
run: |
exit ${{ steps.run_tests.outputs.run_tests_exit_code }}