Config#486: WorkFlow CI 설정 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "*" ] | |
permissions: | |
contents: read | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
# 환경별 properties 파일 생성 - API-KEY | |
- name: make application-API-KEY.properties | |
run: | | |
cd ./src/main/resources | |
touch ./application-API-KEY.properties | |
echo "${{ secrets.YML_CI }}" > ./application-API-KEY.properties | |
shell: bash | |
- name: Run chmod to make gradlew executable | |
run: chmod +x ./gradlew | |
# gradle build | |
- name: Build with Gradle | |
run: ./gradlew clean build -x test | |
# - name: Test with JaCoCo | |
# run: ./gradlew build jacocoTestReport | |
# | |
# - name: Upload JaCoCo Coverage Report | |
# uses: madrapps/jacoco-report@v1.2 | |
# with: | |
# name: jacoco-report | |
# path: leaguehub-backend/build/reports/jacoco/test/html/jacocoTestReport.xml | |
# token: ${{ secrets.GIT_TOKEN }} | |
# title: "테스트 커버리지 측정" | |