fix some projects thinking they're using java 21 #186
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: ✅ Checkout Project | |
uses: actions/checkout@v4 | |
- name: 📐 Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 17 | |
- name: 📐 Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: 🧪 Gradle Test | |
run: | | |
chmod +x ./gradlew | |
./gradlew build test |