Skip to content

cd: create GH Actions workflow to prepare release on dispatch #343

cd: create GH Actions workflow to prepare release on dispatch

cd: create GH Actions workflow to prepare release on dispatch #343

Workflow file for this run

name: maven-build
on:
pull_request:
branches:
- master
# Do not execute only for specific paths if workflow is required.
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
java-version:
- 11
- 17
- 21
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: corretto
cache: maven
- name: Build with Maven
run: >
mvn
--batch-mode
--file pom.xml
-Pcoverage
-Dsytle.colors=always
--errors
package
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}