Skip to content

✨ [Feature] ν…ŒμŠ€νŠΈ ν™˜κ²½ κ°œμ„  및 CI μΆ”κ°€ #10

✨ [Feature] ν…ŒμŠ€νŠΈ ν™˜κ²½ κ°œμ„  및 CI μΆ”κ°€

✨ [Feature] ν…ŒμŠ€νŠΈ ν™˜κ²½ κ°œμ„  및 CI μΆ”κ°€ #10

name: πŸ’» Test code validation
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, 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
- name: mv for separate report
run: mv ./build/reports/jacoco/test ./build/reports/jacoco/unitTest
- name: πŸ“² Upload unitTest coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/reports/jacoco/unitTest/jacocoTestReport.xml
flags: unitTest
name: codecov-unit
verbose: true
- name: πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘¦ Integration Test with Gradle
run: ./gradlew --console verbose clean integrationTestCoverage
- name: πŸ“² Upload integrationTest coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: integrationTest
name: codecov-integration
verbose: true