From e4c7a70e195473c0e2a14bcfae1d3295fab27e65 Mon Sep 17 00:00:00 2001 From: Stuart McCulloch Date: Sun, 30 Jan 2022 15:28:27 +0000 Subject: [PATCH] Enable Java CI workflow --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a780dd0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ + +name: build + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + fail-fast: false + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: 'temurin' + cache: 'maven' + + - name: Build with Maven + run: mvn verify -e -B -V + diff --git a/README.md b/README.md index d0760de..865bbd8 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ +-----------+---+-----------+-------+ ``` +[![build](https://github.com/eclipse/sisu.plexus/actions/workflows/build.yml/badge.svg?event=push)](https://github.com/eclipse/sisu.plexus/actions/workflows/build.yml) [![maintainability](https://sonarcloud.io/api/project_badges/measure?project=org.eclipse.sisu%3Asisu-plexus&metric=sqale_rating)](https://sonarcloud.io/summary/overall?id=org.eclipse.sisu%3Asisu-plexus) [![license](https://img.shields.io/badge/license-EPL_1.0-blue.svg)](https://www.eclipse.org/legal/epl-v10.html)