mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
test build and test in the same file
This commit is contained in:
parent
e410fb0b24
commit
9f6af7b5a7
1 changed files with 13 additions and 4 deletions
17
.github/workflows/maven-build.yml
vendored
17
.github/workflows/maven-build.yml
vendored
|
@ -10,8 +10,8 @@ on:
|
|||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Build and Test
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -33,5 +33,14 @@ jobs:
|
|||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
- name: TEST with Maven Wrapper
|
||||
run: ./mvnw -B test
|
||||
|
||||
publish-job:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
run: ./mvnw -B test
|
||||
|
|
Loading…
Reference in a new issue