Skip to content

Merge pull request #74 from emeraldpay/feature/blobs-json-mapping #88

Merge pull request #74 from emeraldpay/feature/blobs-json-mapping

Merge pull request #74 from emeraldpay/feature/blobs-json-mapping #88

Workflow file for this run

name: Tests
on:
# if pushed directly to the master
push:
branches:
- master
- release/*
- ci/*
# on a pull request
pull_request:
branches:
- master
- release/*
- ci/*
jobs:
# Run unit tests and submit Coverage Report
unit-test:
name: Standard Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check
- name: Build Coverage Report
uses: eskatos/gradle-command-action@v1
with:
arguments: coverageReport
- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/coverageReport/coverageReport.xml
# Make sure it works with all standard JVMs on main OSes
platform-test:
name: Java ${{ matrix.java }} on ${{ matrix.os }}
continue-on-error: ${{ matrix.java != '11' }}
strategy:
matrix:
# to support Java 14 need to upgrade Groovy, https://github.com/gradle/gradle/issues/10248
java: ["11", "12", "13"]
os: ["windows-latest", "macos-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check