Skip to content

Instantly share code, notes, and snippets.

@wenqiglantz
Created January 23, 2022 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wenqiglantz/6429c9b893b7e29be784d468efe85291 to your computer and use it in GitHub Desktop.
Save wenqiglantz/6429c9b893b7e29be784d468efe85291 to your computer and use it in GitHub Desktop.
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup jdk-17
uses: actions/setup-java@main
with:
java-version: 17
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean install --file pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment