build #1053
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
# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
name: build | |
on: | |
push: | |
branches: ['main', 'maintenance/*'] | |
pull_request: | |
branches: ['main', 'maintenance/*'] | |
schedule: | |
- cron: '0 0 * * 6' | |
permissions: | |
contents: 'read' | |
jobs: | |
build: | |
runs-on: 'ubuntu-latest' | |
strategy: | |
matrix: | |
java: ['8', '11', '17', '21'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Build | |
run: 'mvn -B formatter:validate verify javadoc:jar' |