Update Readme #102
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 | |
on: | |
push: | |
branches: 'main' | |
tags-ignore: | |
- 'v**' | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }}-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
java: [ 17 ] | |
os: [ ubuntu, macos ] | |
env: | |
OS: ${{ matrix.os }} | |
USED_JAVA: ${{ matrix.java }} | |
name: With Java ${{ matrix.java }} on ${{ matrix.os }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches/ | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Gradle build | |
run: ./gradlew clean build jacocoTestReport --stacktrace | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
name: codecov-umbrella | |
env_vars: OS,USED_JAVA | |
buildDone: | |
name: Build Ok | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build Ok | |
run: echo 'all builds passed' |