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

Switch workflows #52

Merged
merged 4 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ on:
description: "Is this CI run from a public fork?"
default: true
type: boolean
run-tests:
default: true
type: boolean

jobs:
validate:
Expand Down Expand Up @@ -102,7 +105,7 @@ jobs:

test:
needs: [validate]
if: ${{ ! needs.validate.outputs.is-draft }}
if: ${{ ! needs.validate.outputs.is-draft && inputs.run-tests }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: CI
name: Validate Patch

on:
push:
branches:
- 'trunk'
- '4.0'

schedule:
- cron: '0 0 * * 6,0' # Run on Saturday and Sunday at midnight UTC

pull_request:
types: [ opened, synchronize, ready_for_review, reopened ]
branches:
- 'trunk'
- '4.0'
branches: ["main"]

merge_group:
types:
- checks_requested
types: [checks_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -47,7 +36,7 @@ jobs:
with:
fetch-depth: 0
- name: Display info
run: |
run: |
pwd
tree -a -I '.git'
echo "Action: ${{ github.event.action }}"
Expand All @@ -56,11 +45,11 @@ jobs:
git log origin/main..HEAD
- name: Validate files
run: sleep 5

build:
uses: ./.github/workflows/build.yml
with:
is-trunk: ${{ github.ref == 'refs/heads/trunk' }}
is-public-fork: ${{ github.event.pull_request.head.repo.fork || false }}
run-tests: false
secrets:
inherit
26 changes: 0 additions & 26 deletions .github/workflows/merge-queue.yml

This file was deleted.