Prepare next pmd-eclipse-plugin development version 7.8.0-SNAPSHOT #409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: | |
schedule: | |
# build it monthly: At 05:00 on day-of-month 1. | |
- cron: '0 5 1 * *' | |
workflow_dispatch: | |
jobs: | |
# verify build on one node before multiple builds on different os are started | |
fail-fast-build: | |
name: verify (ubuntu-latest, 2024-09) | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
targetPlatform: 2024-09 | |
deploy: true | |
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload screenshots of failed unit tests | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: screenshots-ubuntu-latest-2024-09 | |
path: net.sourceforge.pmd.eclipse.plugin.test/screenshots | |
if-no-files-found: ignore | |
build: | |
needs: fail-fast-build | |
name: verify (${{ matrix.os }}, ${{ matrix.targetPlatform }}) | |
timeout-minutes: 60 | |
continue-on-error: false | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
targetPlatform: [ 2024-09 ] | |
exclude: | |
# exclude the fail-fast-build, which already ran | |
- os: ubuntu-latest | |
targetPlatform: 2024-09 | |
# run other target platforms only on linux | |
include: | |
- os: ubuntu-latest | |
targetPlatform: 2024-06 | |
- os: ubuntu-latest | |
targetPlatform: 2024-03 | |
- os: ubuntu-latest | |
targetPlatform: 2023-12 | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Environment | |
uses: ./.github/actions/setup | |
- name: Build | |
uses: ./.github/actions/build | |
with: | |
targetPlatform: ${{ matrix.targetPlatform }} | |
deploy: false | |
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }} | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload screenshots of failed unit tests | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: screenshots-${{ matrix.os }}-${{ matrix.targetPlatform }} | |
path: net.sourceforge.pmd.eclipse.plugin.test/screenshots | |
if-no-files-found: ignore |