36 lines
894 B
YAML
36 lines
894 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_linux_hotspot_25.0.3_9.tar.gz
|
|
tar -xzf OpenJDK25U-jdk_x64_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/
|