Skip to content

[Setting] #5 - CI/CD 구축 #3

[Setting] #5 - CI/CD 구축

[Setting] #5 - CI/CD 구축 #3

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: application.yml 작성
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application-deploy.yml
echo "${{ secrets.DATA }}" > ./data.sql
cat ./application-deploy.yml
- name: build
run: |
chmod +x gradlew
./gradlew build -x test
shell: bash