Skip to content

Merge pull request #5 from team-nabi/NABI-41--yejin--feat--oauth2-kakao #7

Merge pull request #5 from team-nabi/NABI-41--yejin--feat--oauth2-kakao

Merge pull request #5 from team-nabi/NABI-41--yejin--feat--oauth2-kakao #7

Workflow file for this run

# workflow의 이름
name: CI
# 해당 workflow가 언제 실행될 것인지에 대한 트리거를 지정
on:
push:
branches: [ "main" ] # master branch로 push 될 때 실행
pull_request:
branches: [ "main" ] # master branch로 pull request될 때 실행
# workflow는 한개 이상의 job을 가지며, 각 job은 여러 step에 따라 단계를 나눌 수 있음
jobs:
build:
name: CI
# 해당 jobs에서 아래의 steps들이 어떠한 환경에서 실행될 것인지를 지정
runs-on: ubuntu-20.04
steps:
# 작업에서 액세스할 수 있도록 $GITHUB_WORKSPACE에서 저장소를 체크아웃

Check failure on line 19 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17'
# application.properties를 프로젝트에 포함
- name: add Application.yml
run:
touch ./src/main/resources/application.yml
shell: bash
- name: copy Application.yml
run:
echo "${{ secrets.APPLICATION_YML }}" > ./src/main/resources/application.yml
shell: bash
# gradle 권한 설정
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Test with Gradle
run: ./gradlew test
# 빌드
- name: Build with Gradle
run: ./gradlew build
shell: bash