Skip to content

Instantly share code, notes, and snippets.

@gadmel
Created February 28, 2023 22:01
Show Gist options
  • Save gadmel/6e0c1fd6dc6a4dcef8bdeda9087b3546 to your computer and use it in GitHub Desktop.
Save gadmel/6e0c1fd6dc6a4dcef8bdeda9087b3546 to your computer and use it in GitHub Desktop.
.github/workflows/maven.yml
name: Java CI - Build with Maven
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file backend/pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment