schedule to publish trade stats within 12 hours after restart (#1955) #1074
This file contains hidden or 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: Codacy Coverage Reporter | |
on: ["push"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
if: github.repository == 'haveno-dex/haveno' | |
name: Publish coverage | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'adopt' | |
- name: Create local share directory | |
# ubuntu-24.04 Github runners do not have `~/.local/share` directory by default. | |
# This causes issues when testing `FileTransferSend` | |
run: mkdir -p ~/.local/share | |
- name: Build with Gradle | |
run: ./gradlew clean build -x checkstyleMain -x checkstyleTest -x shadowJar | |
- name: Run codacy coverage reporter | |
uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ${{ github.workspace }}/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml |