mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
6e9648af20
codacy's github action will allow us to run checks also on pull requests (tested on my fork)
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: codacy-coverage-reporter
|
|
|
|
on: ["push"]
|
|
|
|
jobs:
|
|
codacy-coverage-reporter:
|
|
runs-on: ubuntu-latest
|
|
name: codacy-coverage-reporter
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: '11'
|
|
distribution: 'adopt'
|
|
cache: gradle
|
|
- name: Pull lfs
|
|
run: git lfs pull
|
|
- name: Build with make
|
|
run: make
|
|
- name: cache nodes dependencies
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: cached-localnet
|
|
path: .localnet
|
|
- name: Cleanup Gradle Cache
|
|
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
|
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
|
|
run: |
|
|
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
|
rm -f ~/.gradle/caches/modules-2/gc.properties
|
|
- name: Run codacy-coverage-reporter
|
|
uses: codacy/codacy-coverage-reporter-action@v1
|
|
with:
|
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
|
coverage-reports: assets/build/reports/jacoco/test/jacocoTestReport.xml
|