Skip to content

v 1.3.0

v 1.3.0 #25

Workflow file for this run

name: ASAP Prod CI
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'asap_dev'
mysql user: 'asap_dev_admin'
mysql password: ${{ secrets.DatabasePassword }}
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: make application.properties 파일 생성
run: |
## create application.yml
rm -r ./src/main/resources
mkdir ./src/main/resources
cd ./src/main/resources
# application.yml 파일 생성
touch ./application.yml
# GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기
echo "${{ secrets.DEV_APPLICATION_YAML }}" >> ./application.yml
# application.yml 파일 확인
cat ./application.yml
shell: bash
# 이 워크플로우는 gradle build
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle # 실제 application build
run: ./gradlew build -x test