Skip to content

Commit

Permalink
chore: exclude some jobs in draft mode unless a label is set
Browse files Browse the repository at this point in the history
fixes podman-desktop#9111
Signed-off-by: Florent Benoit <[email protected]>
  • Loading branch information
benoitf committed Nov 19, 2024
1 parent 6ea6f01 commit 34162fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ concurrency:

jobs:
windows:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: Windows
runs-on: windows-2022
timeout-minutes: 60
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
path: ./dist/podman-desktop*-next-arm64.exe

linux:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: Linux
runs-on: ubuntu-24.04
timeout-minutes: 40
Expand Down Expand Up @@ -124,6 +126,7 @@ jobs:
path: ./dist/podman-desktop-*.flatpak

darwin:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: macOS
runs-on: macos-14
timeout-minutes: 40
Expand Down Expand Up @@ -166,6 +169,7 @@ jobs:
path: ./dist/podman-desktop-*universal.dmg

website-build:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: build website
runs-on: ubuntu-24.04
steps:
Expand Down Expand Up @@ -201,6 +205,7 @@ jobs:
PR_SHA
lint-format:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: linter, formatters
runs-on: ubuntu-24.04
timeout-minutes: 40
Expand Down Expand Up @@ -234,6 +239,7 @@ jobs:
fi
typecheck:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: typecheck
runs-on: ubuntu-24.04
timeout-minutes: 40
Expand All @@ -259,6 +265,7 @@ jobs:
run: pnpm svelte:check

unit-tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: unit tests / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
Expand All @@ -285,6 +292,7 @@ jobs:
run: pnpm test:unit

smoke-e2e-tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: smoke e2e tests
runs-on: ubuntu-24.04
strategy:
Expand Down Expand Up @@ -362,6 +370,7 @@ jobs:
!./tests/**/traces/raw
detect_pnpm_changes:
if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }}
name: Detect pnpm lock or pr-check files changes
runs-on: ubuntu-24.04
outputs:
Expand Down

0 comments on commit 34162fc

Please sign in to comment.