Skip to content

build

build #1

Workflow file for this run

name: build
on:
push:
branches: [ master ]
paths: [ '**.java', '.github/workflows/build.yml', 'pom.xml' ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ '8', '11' ,'17', '21' ]
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
permissions:
contents: read
packages: write
name: Java ${{ matrix.Java }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- run: mvn test