Skip to content

Improved macOS support: Small fixes #269

Improved macOS support: Small fixes

Improved macOS support: Small fixes #269

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, windows-latest]
jdk: [11, 17, 21]
argLine: [-Dengineering.swat.java-watch.mac=jdk, -Dengineering.swat.java-watch.mac=jna]
exclude:
- argLine: -Dengineering.swat.java-watch.mac=jdk
- argLine: -Dengineering.swat.java-watch.mac=jna
include:
- os: macos-latest
- argLine: -Dengineering.swat.java-watch.mac=jdk
- 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