haveno/.github/workflows/build.yml

39 lines
908 B
YAML
Raw Normal View History

2021-05-05 00:20:30 +00:00
name: CI
on:
push:
pull_request:
paths-ignore:
- '**/README.md'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2021-05-05 00:20:30 +00:00
fail-fast: false
runs-on: ${{ matrix.os }}
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: Build with Gradle
run: ./gradlew build --stacktrace --scan
- name: cache nodes dependencies
uses: actions/upload-artifact@v2
with:
name: cached-localnet
path: .localnet
2021-05-05 00:20:30 +00:00
- uses: actions/upload-artifact@v2
if: failure()
with:
name: gradlew-report
path: 'desktop/build/reports/tests/test/index.html'
retention-days: 30