Skip to content

ci: 배포 액션에 쓰기 권한 추가 #10

ci: 배포 액션에 쓰기 권한 추가

ci: 배포 액션에 쓰기 권한 추가 #10

Workflow file for this run

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