Fix CI again 😭 #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |