Skip to content

Fix problem with modern Jackson and error handling #2

Fix problem with modern Jackson and error handling

Fix problem with modern Jackson and error handling #2

Workflow file for this run

---
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'
java-version: |
21
17
8
- 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
17=${JAVA_HOME_17_X64}
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/