Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # Updated to v3
- name: Set up JDK 11
uses: actions/setup-java@v3 # Updated to v3
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Test with Maven
run: mvn -B test --file pom.xml