This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06b9558
commit 59f0a76
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,30 +14,30 @@ jobs: | |
#if: github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
path: head | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Check out HEAD revision | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
path: head | ||
- name: Check out BASE revision | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
ref: release-dev | ||
path: base | ||
- name: Build with Maven | ||
working-directory: head | ||
run: mvn test -Dtest=SwaggerConfigTest#swaggerSpringPlugin -DfailIfNoTests=false | ||
- name: Run OpenAPI Diff (from HEAD revision) | ||
uses: mvegter/openapi-diff-action@72cde50f8d3a75f770f08e23b815d5ebe69ff757 | ||
with: | ||
head-spec: head/app/src/main/resources/swagger/api-docs.json | ||
base-spec: base/app/src/main/resources/swagger/api-docs.json | ||
- name: Commit api-docs | ||
working-directory: head | ||
run: | | ||
git ls-files ./app** | grep 'api-docs*' | xargs git add | ||
git config --global user.email "[email protected]" | ||
|