ci: add a minimal CI pipeline to build, test and check #2
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, Test and Check plugin | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'CONTRIBUTING.md' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
Build-Test-Check: | |
strategy: | |
matrix: | |
os: [ubuntu, windows, macos] | |
jvm_version: [11, 17, 21] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.jvm_version }} | |
- name: Build | |
run: ./gradlew classes testClasses | |
- name: Test | |
run: ./gradlew test | |
- name: Check | |
run: ./gradlew check |