Skip to content

[refact] 16, 18이슈 옮기기 및 firebase key CI.yml에 등록 #7

[refact] 16, 18이슈 옮기기 및 firebase key CI.yml에 등록

[refact] 16, 18이슈 옮기기 및 firebase key CI.yml에 등록 #7

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.3
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: create secret config file
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION_TEST }}" > ./application.yml
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "firebase.json"
json: ${{ secrets.SECRET_JSON }}
- name: move-json
run: mv ${{steps.create-json.output.result}} src/main/resources
- name: build with gradle
run: |
chmod +x gradlew
./gradlew clean build