Skip to content

Add automated testing and CI workflow #1

Add automated testing and CI workflow

Add automated testing and CI workflow #1

Workflow file for this run

name: Test
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: gradle
- name: Make gradlew executable
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew test
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: build/test-results/test/