Skip to content

Commit

Permalink
Workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
aqerd committed Nov 16, 2024
1 parent 5623421 commit 420b650
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@ name: Java Maven CI
on:
push:
branches:
- main
- '**'
paths:
- 'src/**'
pull_request:
branches:
- main
- '**'
paths:
- 'src/**'

jobs:
build:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Cache Maven packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -33,5 +37,5 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Run Tests
- name: Run clean tests
run: mvn clean test

0 comments on commit 420b650

Please sign in to comment.