36 lines
691 B
YAML
36 lines
691 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: Setup Java 25
|
|
uses: https://github.com/actions/setup-java@v4
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
cache: 'gradle'
|
|
|
|
- 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/
|