β¨ [Feature] Admin 곡μ μΌμ μμ API μμ± #1089 #907
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: π» Test code validation | |
on: | |
pull_request: | |
branches: [ main, dev, recruit-dev] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: οΈπΆ Unit Test with Gradle | |
run: ./gradlew --console verbose clean unitTestCoverage unitTestCoverageReport -x test | |
# - name: mv for separate report folder | |
# run: mv ./gg-pingpong-utils/build/reports/jacoco/unitTestCoverageReport ./build/reports/jacoco/unitTest | |
# - name: mv for separate report name | |
# run: mv ./build/reports/jacoco/unitTest/jacocoTestReport.xml ./build/reports/jacoco/unitTest/unitTestReport.xml | |
- name: π² Upload unitTest coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: ./gg-utils/build/reports/jacoco/unitTestCoverageReport/unitTestCoverageReport.xml | |
flags: unitTest | |
name: codecov-unit | |
verbose: true | |
- name: π¨βπ¨βπ§βπ¦ Integration Test with Gradle | |
run: ./gradlew --console verbose clean integrationTestCoverage integrationTestCoverageReport -x test | |
- name: π² Upload integrationTest coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: ./gg-utils/build/reports/jacoco/integrationTestCoverageReport/integrationTestCoverageReport.xml | |
flags: integrationTest | |
name: codecov-integration | |
verbose: true |