Fix some seed export issues #507
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: Build and test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
java_version: "17" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "${{env.java_version}}" | |
distribution: temurin | |
cache: gradle # caches dependencies (https://github.com/actions/setup-java#caching-packages-dependencies) | |
- name: Build project and run unit tests (local flavor) | |
run: ./gradlew test unitTestCoverageReport --stacktrace | |
- name: Add coverage comment to PR | |
# Action uses deprecated features (https://github.com/Madrapps/jacoco-report/issues/35). | |
uses: madrapps/[email protected] | |
with: | |
paths: "${{github.workspace}}/app/build/reports/jacoco/unitTestCoverageReport/unitTestCoverageReport.xml" | |
token: "${{secrets.GITHUB_TOKEN}}" | |
- name: Store HTML coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: "${{github.workspace}}/app/build/reports/jacoco/unitTestCoverageReport/html/" |