Skip to content

Update junit5 monorepo to v5.11.2 #39

Update junit5 monorepo to v5.11.2

Update junit5 monorepo to v5.11.2 #39

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags:
- 'v*.*.*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '13', '15' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: "Set up JDK ${{ matrix.java }}"
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Cache Gradle wrapper and dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/dists
key: test-${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle.properties', 'gradle/**', 'buildSrc/src/main/**') }}
restore-keys: |
test-${{ runner.os }}-gradle-
- name: Gradle build
run: ./gradlew build
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 8
- name: Cache Gradle wrapper and dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/dists
key: test-${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle.properties', 'gradle/**', 'buildSrc/src/main/**') }}
restore-keys: |
test-${{ runner.os }}-gradle-
- name: Gradle jacoco
run: ./gradlew build
- name: Codecov upload
uses: codecov/codecov-action@v1
release:
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 8
- name: Cache Gradle wrapper and dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/dists
key: test-${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', '**/gradle.properties', 'gradle/**', 'buildSrc/src/main/**') }}
restore-keys: |
test-${{ runner.os }}-gradle-
- name: Gradle publish
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publish