ci: 배포 액션에 쓰기 권한 추가 #10
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: Spring Boot Test | |
on: | |
pull_request: | |
branches: master | |
push: | |
branches: master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Save secrets as .env file | |
run: | | |
echo $SECRETS_CONTEXT | jq -r 'to_entries[] | "\(.key)=\(.value)\n"' > src/main/resources/.env | |
env: | |
SECRETS_CONTEXT: ${{toJSON(secrets)}} | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Run Gradle Test | |
run: ./gradlew test | |
env: | |
SPRING_PROFILES_ACTIVE: dev |