Skip to content

Merge pull request #21 from SOPT-33-iOS-Team-1/main #31

Merge pull request #21 from SOPT-33-iOS-Team-1/main

Merge pull request #21 from SOPT-33-iOS-Team-1/main #31

Workflow file for this run

name: 🏭 SKT-T1-APPLICATION-BUILD!
# 해당 Action이 실행되는 Trigger
on:
pull_request:
branches: [ "dev" ]
push:
branches: [ "dev" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1) 워크플로우 실행 전 기본적으로 체크아웃 필요
- name: checkout
uses: actions/checkout@v3
# 2) JDK 11버전 설치, 다른 JDK 버전을 사용하다면 수정
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
# 3) 환경변수 파일 생성
- name: Copy application.yml
run: |
# application.yml 생성
mkdir ./src/main/resources
touch ./src/main/resources/application.yml
# application.yml 파일 값 입력
echo "${{ secrets.APPLICATION_YML }}" >> ./src/main/resources/application.yaml
# application.yaml 파일 확인
cat ./src/main/resources/application.yaml
shell: bash
# 이 워크플로우는 gradle build
- name: Grant execute permission for gradlew
run: |
chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew build -x test