24 lines
490 B
YAML
24 lines
490 B
YAML
name: Maven CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.3.0 #https://github.com/actions/checkout/releases
|
|
- name: Set up JDK 8
|
|
uses: actions/setup-java@v3.9.0 #https://github.com/actions/setup-java/releases
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 8
|
|
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml
|