Skip to content

Commit

Permalink
Add Mac OS to the build matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Nov 17, 2023
1 parent a5fa411 commit def27a7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@

name: pr-verify

on: [push, pull_request]
on:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests)
push:
branches: [ main ]
# Trigger the workflow on any pull request
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
- name: Run Tests on Windows
if: runner.os == 'Windows'
run: ./mvnw.cmd -B '-Dlemminx.cacheInRepoDir' clean verify
- name: Run Tests on Linux
if: runner.os == 'Linux'
run: ./mvnw -B clean verify
- name: Run Tests
run: ./mvnw -B '-Dlemminx.cacheInRepoDir' clean verify

0 comments on commit def27a7

Please sign in to comment.