mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 05:41:11 +00:00
Create maven-publish.yml
Signed-off-by: SunkePranayTR <sunkepranay505@gmail.com>
This commit is contained in:
parent
ab1d5364a0
commit
4c0a814201
1 changed files with 69 additions and 0 deletions
69
.github/workflows/maven-publish.yml
vendored
Normal file
69
.github/workflows/maven-publish.yml
vendored
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
name: CI - Build & Test (PetClinic)
|
||||
|
||||
on:
|
||||
|
||||
push:
|
||||
|
||||
branches: ["main"]
|
||||
|
||||
pull_request:
|
||||
|
||||
branches: ["main"]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
build-test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: checkout source code
|
||||
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: setup java17
|
||||
|
||||
uses: actions/setup-java@v5
|
||||
|
||||
with:
|
||||
|
||||
distribution: temurin
|
||||
|
||||
java-version: "17"
|
||||
|
||||
cache: maven
|
||||
|
||||
- name: show versions
|
||||
|
||||
run: |
|
||||
|
||||
java -version
|
||||
|
||||
./mvnw -version
|
||||
|
||||
- name: build
|
||||
|
||||
run: ./mvnw clean package
|
||||
|
||||
- name: run test
|
||||
|
||||
run: ./mvnw -B test
|
||||
|
||||
- name: upload artifacts
|
||||
|
||||
if: always()
|
||||
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
with:
|
||||
|
||||
name: testreport1
|
||||
|
||||
path: target/surefire-reports
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue