Skip to content

Commit

Permalink
Switch workflows (#52)
Browse files Browse the repository at this point in the history
* switch jobs

* skip tests for merge queue

* skip tests

* trying something
  • Loading branch information
mumrah authored Feb 13, 2025
1 parent 886ac86 commit 9037ed5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 43 deletions.
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.

0 comments on commit 9037ed5

Please sign in to comment.