Skip to content

Commit cf1cdc4

Browse files
committed
ci: add fork-only pull_request workflow for pre-submit signal
Signed-off-by: Chris Randles <randles.chris@gmail.com>
1 parent 9796a2e commit cf1cdc4

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/fork-ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: fork-ci
2+
3+
# Runs verify + unit tests on forks only. Upstream CI lives in Prow;
4+
# this gives contributors deterministic pre-review signal on their branch.
5+
# The job is gated to forks so it stays dormant in kubernetes-sigs/e2e-framework.
6+
#
7+
# Intended flow: open an intra-fork PR (feature-branch -> main on your fork)
8+
# to get pre-submit signal, then open the upstream PR once it's green.
9+
# Cross-fork PRs (fork -> kubernetes-sigs/e2e-framework) fire pull_request
10+
# events in the upstream repo's context, where the repository guard skips
11+
# this workflow by design.
12+
13+
on:
14+
pull_request:
15+
16+
permissions: {}
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
verify:
24+
if: github.repository != 'kubernetes-sigs/e2e-framework'
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
30+
- name: Set up Go
31+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
32+
with:
33+
go-version: '1.26'
34+
check-latest: 'true'
35+
cache: 'true'
36+
37+
- name: Verify
38+
run: make verify
39+
40+
test:
41+
if: github.repository != 'kubernetes-sigs/e2e-framework'
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+
47+
- name: Set up Go
48+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
49+
with:
50+
go-version: '1.26'
51+
check-latest: 'true'
52+
cache: 'true'
53+
54+
- name: Test
55+
run: make test

0 commit comments

Comments
 (0)