Skip to content

Rework properties handling in preferences #320

Rework properties handling in preferences

Rework properties handling in preferences #320

Workflow file for this run

name: build
on:
push:
branches:
- main
- master
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-03)
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-03
deploy: true
pmdCiSecretPassphrase: ${{ secrets.PMD_CI_SECRET_PASSPHRASE }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
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-03 ]
exclude:
# exclude the fail-fast-build, which already ran
- os: ubuntu-latest
targetPlatform: 2024-03
# run other target platforms only on linux
include:
- os: ubuntu-latest
targetPlatform: 2023-12
- os: ubuntu-latest
targetPlatform: 2023-09
- os: ubuntu-latest
targetPlatform: 2023-06
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