Skip to content

README update

README update #71

name: Multi Platform CI
on:
push:
branches-ignore:
- main
- wip*
jobs:
ci:
name: run tests, style verification, measure code coverage and publish to nexus staging repository
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, windows-2022, macos-13]
env:
OS: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Java JDK setup
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "zulu"
- name: Run Tests and upload coverage
run: ./gradlew clean build check test coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# Publish to the staging repository only once, from the Linux Runner
- name: Publish to Staging repository
if: runner.os == 'Linux'
run: ./gradlew publishToSonatype
env:
NEXUS_TARGET: SNAPSHOT
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}