Skip to content

Rename appSpec.yml to appspec.yml #15

Rename appSpec.yml to appspec.yml

Rename appSpec.yml to appspec.yml #15

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: GO-SOPT-Server CI
on: ## 언제 작업을 실행시킬 것인가?
push:
branches: [ "main" ] # main 브랜치에 push 액션이 취해지면 플로우가 실행된다.
pull_request:
branches: [ "main" ] # pull request 액션이 취해지면 플로우가 실행된다.
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 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
# 3) 환경변수 파일 생성
- name: make application.yml 파일 생성
run: |
## create application.yml
mkdir ./WEEK4/FourthSeminar/src/main/resources
cd ./WEEK4/FourthSeminar/src/main/resources
# application.yml 파일 생성 (touch: 빈 파일 생성하는 리눅스 명령어)
touch ./application.yml
# GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기
echo "${{ secrets.SOPT_APPLICATION }}" >> ./application.yml
# application.yml 파일 확인
cat ./application.yml
shell: bash
# 이 워크플로우는 gradle build
- name: Grant execute permission for gradlew
run: |
cd ./WEEK4/FourthSeminar
chmod +x gradlew
- name: Build with Gradle # 실제 application build(-x 옵션을 통해 test는 제외)
run: |
cd ./WEEK4/FourthSeminar
./gradlew build -x test