π λ§μ€ μμ API μΆκ° #268
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: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
build: | |
environment: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: μ²΄ν¬ μμ | |
uses: actions/checkout@v4 | |
- name: AWS credentials μ€μ | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ap-northeast-2 | |
- name: Redis μ€ν | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 7.2.4-alpine | |
redis-port: 6379 | |
- name: JDK 17 μ€μΉ | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: Gradle κΆν λΆμ¬ | |
run: chmod +x gradlew | |
- name: νλ‘μ νΈ λΉλ | |
run: ./gradlew clean build | |
- name: Jacoco ν μ€νΈ κ²°κ³Ό μΆλ ₯ | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
title: π Jacoco ν μ€νΈ κ²°κ³Ό | |
paths: ${{ github.workspace }}/**/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 50 | |
min-coverage-changed-files: 50 | |
update-comment: true |