Fix problem with modern Jackson and error handling #10
Workflow file for this run
This file contains hidden or 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: build | |
| on: | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| defaults: | |
| run: | |
| shell: /usr/bin/bash -l -e -o pipefail {0} | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v6 | |
| - name: setup java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| # we need to compile with 8, but make 21 the default we run savant with by virtue of it being last | |
| java-version: | | |
| 8 | |
| 21 | |
| - name: savant setup | |
| run: | | |
| curl -O https://repository.savantbuild.org/org/savantbuild/savant-core/2.2.0/savant-2.2.0.tar.gz | |
| tar xzvf savant-2.2.0.tar.gz | |
| savant-2.2.0/bin/sb --version | |
| SAVANT_PATH=$(realpath -s "./savant-2.2.0/bin") | |
| echo "${SAVANT_PATH}" >> $GITHUB_PATH | |
| mkdir -p ~/.savant/plugins | |
| cat << EOF > ~/.savant/plugins/org.savantbuild.plugin.java.properties | |
| 21=${JAVA_HOME_21_X64} | |
| 1.8=${JAVA_HOME_8_X64} | |
| EOF | |
| echo "~/.savant/plugins/org.savantbuild.plugin.java.properties" | |
| cat ~/.savant/plugins/org.savantbuild.plugin.java.properties | |
| # Takes some time, better to tell difference between this step and actual test run time | |
| - name: compile/pull Savant dependencies | |
| run: | | |
| $JAVA_HOME/bin/java -version | |
| sb --version | |
| sb clean compile | |
| - name: run tests/integrate | |
| run: | | |
| sb clean int | |
| - name: capture reports | |
| uses: actions/upload-artifact@v6 | |
| if: success() || failure() # always run even if the previous step fails | |
| with: | |
| name: testng_reports | |
| path: build/test-reports/ |