Skip to content

Github action start

Github action start #4

Workflow file for this run

name: BE CI/CD
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./backend
permissions:
contents: read
steps:
# 소스 코드 체크아웃 후 backend 디렉토리로 이동
- uses: actions/checkout@v4
# JDK 17 설정
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
working-directory: ${{ env.working-directory }}

Check failure on line 26 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / BE CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yml (Line: 26, Col: 9): Unexpected value 'working-directory'
# Gradle 실행 권한 설정
- name: Grant execute permission to gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}
# Gradle 빌드 실행
- name: Build with Gradle Wrapper
run: ./gradlew build
working-directory: ${{ env.working-directory }}