Skip to content

Extend build workflow to run tests on macOS with/without JNA #268

Extend build workflow to run tests on macOS with/without JNA

Extend build workflow to run tests on macOS with/without JNA #268

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
- improved-macos-support-main
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
argLine: [-Dengineering.swat.java-watch.mac=jdk, -Dengineering.swat.java-watch.mac=jna]

Check failure on line 18 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 18
- windows-latest
jdk: [11, 17, 21]
# include:
# - os: macos-latest
# - os: macos-latest
# argLine: -Dengineering.swat.java-watch.mac=jdk
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: echo " " >> pom.xml # make sure the cache is slightly different for these runners
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: 'maven'
- name: test
run: mvn -B clean test -DargLine="${{ matrix.argLine }}"
env:
DELAY_FACTOR: 3
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
checker-framework:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo " " >> pom.xml # make sure the cache is slightly different for the checker framework
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- run: mvn -B -Pchecker-framework clean compile
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- run: mvn -B license:check
- run: mvn -B editorconfig:check