Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Deee92 committed Jul 8, 2024
1 parent 40f117b commit 5d93345
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 11
- name: Cache the Maven packages to speed up build
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
cache: 'maven'
- name: Execute tests and compute coverage
run: mvn clean test
- name: Generate coverage report
Expand All @@ -25,10 +20,11 @@ jobs:
runs-on: ubuntu-latest
needs: [build_and_test]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
cache: 'maven'
- run: mvn -B package --file pom.xml -DskipTests
- run: mkdir staging && cp **/target/*jar-with-dependencies.jar staging
- uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 5d93345

Please sign in to comment.