[FEAT/#46] 번호 인증 예외 케이스 세분화 및 테스트 코드 이슈 해결 #40
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: Continuous Integration for SOPT makers Authentication Project | |
on: | |
pull_request: | |
branches: [ dev, prod ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: ⚙️ Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: 'corretto' | |
cache: gradle | |
- name: 🤝 Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
shell: bash | |
- name: 🔑 Create Application Property File | |
run: | | |
touch ./gradle.properties | |
echo "${{ secrets.PROPERTY_GRADLE }}" >> ./gradle.properties | |
- name: 🔑 Create Key File related JWT | |
run: | | |
mkdir -p ./src/main/resources | |
echo "${{ secrets.JWT_PRIVATE_KEY }}" > ./src/main/resources/jwt_private_key.pem | |
echo "${{ secrets.JWT_PUBLIC_KEY }}" > ./src/main/resources/jwt_public_key.pem | |
- name: 🔑 Create Test Environment File | |
run: | | |
mkdir -p ./src/main/resources/env | |
echo "${{ secrets.TEST_ENV_FILE }}" > ./src/main/resources/env/test.env | |
- name: 🧱 Build and Test with Gradle | |
run: ./gradlew build --no-daemon | |
shell: bash | |
- name: 🐳 Build with Gradle | |
run: docker build -t app-ci . | |
shell: bash |