Fixed bug in output stream that was causing large files to be written… #147
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: test | |
# Run the tests when code is pushed to `main` | |
on: | |
push: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
17 | |
21 | |
- name: Install Savant Build | |
run: | | |
mkdir -p ~/dev/savant | |
mkdir -p ~/.savant/plugins | |
cd ~/dev/savant | |
curl -fSL https://github.com/savant-build/savant-core/releases/download/2.0.0-RC.7/savant-2.0.0-RC.7.tar.gz > savant.tar.gz | |
tar -xzf savant.tar.gz | |
ln -s savant-2.0.0-RC.7 current | |
rm savant.tar.gz | |
cat <<EOF > ~/.savant/plugins/org.savantbuild.plugin.java.properties | |
17=${JAVA_HOME_17_X64} | |
21=${JAVA_HOME_21_X64} | |
EOF | |
shell: bash | |
- name: Run the build | |
run: | | |
export JAVA_HOME=${JAVA_HOME_17_X64} | |
export PATH=~/dev/savant/current/bin:${JAVA_HOME}/bin:$PATH | |
sb clean int --excludePerformance --excludeTimeouts | |
shell: bash | |
- name: Archive TestNG reports | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: testng-reports | |
path: build/test-reports | |
retention-days: 1 |