Skip to content

[Refactor] 챌린지 기록 지출 평가 필수 값 -> 선택 값 (#416) #504

[Refactor] 챌린지 기록 지출 평가 필수 값 -> 선택 값 (#416)

[Refactor] 챌린지 기록 지출 평가 필수 값 -> 선택 값 (#416) #504

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches:
- dev
pull_request:
branches:
- main
- dev
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.SUBMODULE_TOKEN }}
submodules: recursive
- name: Git Submodule Update
run: git submodule update --remote --recursive
- name: Set Up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: spotless check
run: ./gradlew spotlessCheck
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build test
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'
- name: If the test fails, register a check comment in the failed code line
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '**/build/jacoco/index.xml'