[REFACTOR] Files 서비스 계층 이름 변경 #63
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' |