Files
Bonsai-api/.gitea/workflows/ci.yml
T
2026-05-25 06:17:30 +02:00

36 lines
908 B
YAML

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- main
jobs:
test:
name: Tests & couverture
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Install Java 25
run: |
wget -q https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.3%2B9/OpenJDK25U-jdk_x64_alpine-linux_hotspot_25.0.3_9.tar.gz
tar -xzf OpenJDK25U-jdk_x64_alpine-linux_hotspot_25.0.3_9.tar.gz -C /opt
echo "JAVA_HOME=/opt/jdk-25.0.3+9" >> $GITHUB_ENV
echo "/opt/jdk-25.0.3+9/bin" >> $GITHUB_PATH
- name: Run tests
run: ./gradlew test
- name: Upload test report
if: failure()
uses: https://github.com/actions/upload-artifact@v4
with:
name: test-report
path: build/reports/tests/test/