Skip to content

GitHub Actions, build on push and pr on all OS #1

GitHub Actions, build on push and pr on all OS

GitHub Actions, build on push and pr on all OS #1

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
example_matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build with Maven
run: mvn -B clean verify