chore: update java #11
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: Java | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Lint | |
working-directory: ./java/github-tests | |
run: | | |
./gradlew clean checkstyleMain | |
./gradlew clean checkstyleTest | |
- name: Run Tests | |
working-directory: ./java/github-tests | |
env: | |
GITHUB_USER: ${{ secrets.TEST_GITHUB_USER }} | |
GITHUB_REPO: ${{ secrets.TEST_GITHUB_REPO }} | |
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }} | |
run: ./gradlew clean test |