Update README #143
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 and test | |
on: | |
pull_request: | |
branches: [ master, main ] | |
push: | |
branches: [ master, main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 8 and 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: | | |
8 | |
17 | |
distribution: 'zulu' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build the Gradle plugin | |
run: ./gradlew --info --stacktrace retrofuturagradle:jar | |
- name: Build and locally install the javac plugin | |
run: ./gradlew --info --stacktrace retrofuturagradle:rfgJavacPlugin:publishToMavenLocal | |
- name: Test the plugin | |
run: ./gradlew --info --stacktrace retrofuturagradle:check | |
- name: Build the test mods | |
run: ./gradlew --info --stacktrace testmod:build testdepmod:build |