Skip to content

Commit 9037ed5

Browse files
authored
Switch workflows (#52)
* switch jobs * skip tests for merge queue * skip tests * trying something
1 parent 886ac86 commit 9037ed5

File tree

3 files changed

+9
-43
lines changed

3 files changed

+9
-43
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
description: "Is this CI run from a public fork?"
3030
default: true
3131
type: boolean
32+
run-tests:
33+
default: true
34+
type: boolean
3235

3336
jobs:
3437
validate:
@@ -102,7 +105,7 @@ jobs:
102105
103106
test:
104107
needs: [validate]
105-
if: ${{ ! needs.validate.outputs.is-draft }}
108+
if: ${{ ! needs.validate.outputs.is-draft && inputs.run-tests }}
106109
runs-on: ubuntu-latest
107110
strategy:
108111
fail-fast: false

.github/workflows/ci.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,15 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
name: CI
16+
name: Validate Patch
1717

1818
on:
19-
push:
20-
branches:
21-
- 'trunk'
22-
- '4.0'
23-
24-
schedule:
25-
- cron: '0 0 * * 6,0' # Run on Saturday and Sunday at midnight UTC
26-
2719
pull_request:
2820
types: [ opened, synchronize, ready_for_review, reopened ]
29-
branches:
30-
- 'trunk'
31-
- '4.0'
21+
branches: ["main"]
3222

3323
merge_group:
34-
types:
35-
- checks_requested
24+
types: [checks_requested]
3625

3726
concurrency:
3827
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -47,7 +36,7 @@ jobs:
4736
with:
4837
fetch-depth: 0
4938
- name: Display info
50-
run: |
39+
run: |
5140
pwd
5241
tree -a -I '.git'
5342
echo "Action: ${{ github.event.action }}"
@@ -56,11 +45,11 @@ jobs:
5645
git log origin/main..HEAD
5746
- name: Validate files
5847
run: sleep 5
59-
6048
build:
6149
uses: ./.github/workflows/build.yml
6250
with:
6351
is-trunk: ${{ github.ref == 'refs/heads/trunk' }}
6452
is-public-fork: ${{ github.event.pull_request.head.repo.fork || false }}
53+
run-tests: false
6554
secrets:
6655
inherit

.github/workflows/merge-queue.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)