[BE] OpenAPI 3.0 스펙 문서 생성 자동화 (Swagger UI 통해 API 문서 조회) #24
Workflow file for this run
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
name: backend PR comment | |
on: | |
pull_request: | |
branches: [main] | |
paths: ["backend/**"] | |
types: [opened] | |
defaults: | |
run: | |
working-directory: backend | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: Asia/Seoul | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Replace Jasypt Password in main application.yml | |
run: sed -i "s/encryptKey/${{ secrets.JASYPT_PASSWORD }}/g" ./src/main/resources/application.yml | |
- name: Replace Jasypt Password in test application.yml | |
run: sed -i "s/encryptKey/${{ secrets.JASYPT_PASSWORD }}/g" ./src/test/resources/application.yml | |
- name: Build with Gradle | |
run: ./gradlew bootJar | |
- name: Post Test Results as PR Comment | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: '**/build/test-results/test/TEST-*.xml' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Post Check Comment on Failed Test Lines | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
token: ${{ github.token }} |