[feat] CORS 설정 추가 - #300 #224
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" ] | |
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: | |
distribution: 'corretto' | |
java-version: '21' | |
- name: Gradle Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/build.gradle') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Create application.yml | |
run: | | |
mkdir -p dateroad-api/src/main/resources | |
echo "${{ secrets.CI_APPLICATION }}" > dateroad-api/src/main/resources/application.yml | |
cat dateroad-api/src/main/resources/application.yml | |
shell: bash | |
- name: Build with Gradle | |
run: | | |
chmod +x gradlew | |
./gradlew clean build -x test --parallel --build-cache --daemon | |
shell: bash |