Skip to content

Merge pull request #1 from latte-java/feat/latte-build-benchmarks-rename #22

Merge pull request #1 from latte-java/feat/latte-build-benchmarks-rename

Merge pull request #1 from latte-java/feat/latte-build-benchmarks-rename #22

Workflow file for this run

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
- name: Add hosts entry
run: echo "127.0.0.1 local.lattejava.org" | sudo tee -a /etc/hosts
- name: Install Savant Build
run: |
curl -fsSL https://lattejava.org/javaenv/install | bash
curl -fsSL https://lattejava.org/cli/install | bash
~/.local/bin/javaenv install 21
~/.local/bin/javaenv install 25
cat <<EOF > ~/.config/latte/config.properties
latteRepositoryS3AccessKeyID=fake
latteRepositoryS3SecretAccessKey=fakse
latteRepositoryS3URL=https://fake.r2.cloudflarestorage.com⏎
EOF
shell: bash
- name: Run the build
run: |
export PATH=~/.local/bin:$PATH
latte 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