Skip to content

Instantly share code, notes, and snippets.

@t1
Created December 21, 2022 11:41
Show Gist options
  • Save t1/bb6ce3e20186aa947a62fbf575693477 to your computer and use it in GitHub Desktop.
Save t1/bb6ce3e20186aa947a62fbf575693477 to your computer and use it in GitHub Desktop.
GitHub Action
name: Java CI
on:
push:
schedule: [ cron: '42 0 * * 5' ] # weekly: At 00:42 on Friday
jobs:
build:
strategy:
matrix:
jdk: [ 11, 17 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: 'maven'
- run: mvn --batch-mode --show-version --no-transfer-progress -DCI=GitHub install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment