diff --git a/.github/workflows/test-pipeline.yml b/.github/workflows/test-pipeline.yml new file mode 100644 index 00000000..bf72b761 --- /dev/null +++ b/.github/workflows/test-pipeline.yml @@ -0,0 +1,31 @@ +name: test + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: JDK 17 설치 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: secret 설정 파일(yml) 추가 + run: | + cd ./src/main/resources + touch ./application-secret.yml + echo "${{ secrets.APPLICATION_SECRET }}" > ./application-secret.yml + + - name: Gradle 권한 허용 + run: chmod +x gradlew + - name: PR 및 PUSH 전, 테스트 확인 + run: ./gradlew test \ No newline at end of file