Files
Bonsai-api/.gitea/workflows/ci.yml
T

36 lines
761 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%2B...
# ou via SDKMAN
curl -s "https://get.sdkman.io" | bash
sdk install java 25-tem
- 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/