Skip to content

Instantly share code, notes, and snippets.

@luuizeduardo
Last active February 10, 2023 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luuizeduardo/17d0caa4743163add9ee47f70441f576 to your computer and use it in GitHub Desktop.
Save luuizeduardo/17d0caa4743163add9ee47f70441f576 to your computer and use it in GitHub Desktop.
Initial workflow file
name: Java CI 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 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment