Skip to content

Commit

Permalink
fixup! fixup! fixup! ci: add gha workflow for tests, with nightly/pr/…
Browse files Browse the repository at this point in the history
…manual triggers
  • Loading branch information
jschobben committed Apr 9, 2024
1 parent 9007ab8 commit f0c27ec
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ jobs:
if bin/3mfmerge /dev/null < /dev/null; then
echo "3mfmerge seems to be in order, skipping build"
exit
fi
if [[ -f bin/3mfmerge ]]; then
echo "::warning::bin/3mfmerge is present but troublesome, forcing a rebuild..."
elif [[ -f bin/3mfmerge ]]; then
echo "::error::Cached bin/3mfmerge is troublesome, failing the job so it can be investigated"
exit 1
fi
mkdir build
cd build
Expand All @@ -178,3 +178,16 @@ jobs:
run: |
./run.sh ${{ matrix.test-params }}
working-directory: test

# Collect results, to be used as combined status check for PRs
all-succeeded:
name: All tests passed
needs: run-tests
if: always()
runs-on: ubuntu-latest
steps:
- name: Report failure
if: contains(needs.*.result, 'failure')
run: |
echo "::error::One or more jobs failed"
exit 1

0 comments on commit f0c27ec

Please sign in to comment.