diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index cc600bc55..9ca7cf81d 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -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 \ No newline at end of file + - name: Run Tests + run: ./mvnw -B '-Dlemminx.cacheInRepoDir' clean verify \ No newline at end of file