[FIX] 회원 탈퇴 이후, 로그인 버튼을 눌렀을 때 회원가입 페이지로 가지 않는 버그 픽스 #70
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: Run gradlew clean test when PR | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
PRTest: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: make application.yml | |
run: | | |
mkdir -p ./src/main/resources | |
cd ./src/main/resources | |
touch ./application.yml | |
touch ./application-common.yml | |
touch ./application-prod.yml | |
echo "${{ secrets.APPLICATION }}" > ./application.yml | |
echo "${{ secrets.COMMON }}" > ./application-common.yml | |
echo "${{ secrets.PROD }}" > ./application-prod.yml | |
- name: make test application.yml | |
run: | | |
mkdir -p ./src/test/resources | |
cd ./src/test/resources | |
touch ./application.yml | |
touch ./application-test.yml | |
echo "${{ secrets.APPLICATION_TEST }}" > ./application.yml | |
echo "${{ secrets.TEST }}" > ./application-test.yml | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
shell: bash | |
- name: Build and Test | |
run: ./gradlew clean test | |
# Test 후 Report 생성 | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: '**/build/test-results/test/TEST-*.xml' |