Skip to content

[feat] 데이트 코스 생성 알고리즘 개선 (하드 룰 → 소프트 룰) #26

[feat] 데이트 코스 생성 알고리즘 개선 (하드 룰 → 소프트 룰)

[feat] 데이트 코스 생성 알고리즘 개선 (하드 룰 → 소프트 룰) #26

Workflow file for this run

name: CI
on:
pull_request:
branches:
- dev
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
- closed
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
checkstyle:
name: checkstyle
if: github.event.action != 'closed' || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
cache: gradle
- name: Grant execute permission for Gradle wrapper
run: chmod +x ./gradlew
- name: Run Checkstyle
run: ./gradlew checkstyleMain checkstyleTest --no-daemon
- name: Upload Checkstyle reports
if: always()
uses: actions/upload-artifact@v4
with:
name: checkstyle-report
path: |
build/reports/checkstyle
if-no-files-found: warn
build-and-test:
name: build-and-test
if: github.event.action != 'closed' || github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
cache: gradle
- name: Grant execute permission for Gradle wrapper
run: chmod +x ./gradlew
- name: Gradle build (compile, test, bootJar; Checkstyle excluded)
run: ./gradlew build -x checkstyleMain -x checkstyleTest --no-daemon
- name: Upload build and test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-and-test-report
path: |
build/reports/tests/test
build/test-results/test
build/libs
if-no-files-found: warn