ci: actions 스크립트 수정 #353
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: CI | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
paths-ignore: | |
- '**/*.md' | |
permissions: | |
contents: read | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
## create application.yml | |
- name: make application-secret.yml | |
run: | | |
mkdir -p ./api/src/main/resources | |
touch ./api/src/main/resources/application-secret.yml | |
shell: bash | |
- name: deliver application-secret.yml | |
run: echo "${{ secrets.APPLICATION_SECRET }}" > ./api/src/main/resources/application-secret.yml | |
shell: bash | |
- name: Start Docker Compose | |
run: docker-compose -f docker-compose-test.yml up -d | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Test with Gradle | |
run: ./gradlew test | |
- name: Stop Docker Compose | |
run: docker-compose -f docker-compose-test.yml down |