action.yml

This commit is contained in:
OS Aplet ❤️®️ 2025-03-24 13:18:26 +01:00 committed by GitHub
parent b8ebb8ba1d
commit bba2d13db5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,3 +84,25 @@ runs:
using: 'node20'
main: 'dist/setup/index.js'
post: 'dist/cleanup/index.js'
name: 'Build and Test Java Project'
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew build
- name: Run tests
run: ./gradlew test