Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows/tests: run some jobs (again) on push. #18967

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI

on:
push:
branches:
- master
pull_request:
merge_group:

Expand Down Expand Up @@ -138,7 +141,7 @@ jobs:
formula-audit:
name: formula audit
needs: syntax
if: github.repository_owner == 'Homebrew'
if: github.repository_owner == 'Homebrew' && github.event_name != 'push'
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/brew:master
Expand All @@ -163,7 +166,7 @@ jobs:
cask-audit:
name: cask audit
needs: syntax
if: github.repository_owner == 'Homebrew'
if: github.repository_owner == 'Homebrew' && github.event_name != 'push'
runs-on: macos-15
steps:
- name: Set up Homebrew
Expand Down Expand Up @@ -218,7 +221,7 @@ jobs:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
needs: syntax
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
if: github.event_name != 'push'
strategy:
matrix:
include:
Expand All @@ -242,6 +245,7 @@ jobs:
brew update-test --commit=HEAD

tests:
if: github.event_name != 'push'
name: ${{ matrix.name }}
needs: syntax
runs-on: ${{ matrix.runs-on }}
Expand Down Expand Up @@ -378,7 +382,7 @@ jobs:
test-default-formula:
name: ${{ matrix.name }}
needs: syntax
if: github.repository_owner == 'Homebrew'
if: github.repository_owner == 'Homebrew' && github.event_name != 'push'
runs-on: ${{ matrix.runs-on }}
container: ${{ matrix.container }}
strategy:
Expand Down
Loading