Skip to content

Commit 357c59b

Browse files
committed
Update github actions ci to run on forks
Excludes actuated when on fork. Runs some project tests on fork. Signed-off-by: Derek McGowan <[email protected]>
1 parent f8fbdfd commit 357c59b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
strategy:
2525
matrix:
2626
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019]
27+
exclude:
28+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
29+
2730

2831
steps:
2932
- uses: actions/checkout@v4
@@ -39,7 +42,6 @@ jobs:
3942
#
4043
project:
4144
name: Project Checks
42-
if: github.repository == 'containerd/containerd'
4345
runs-on: ubuntu-22.04
4446
timeout-minutes: 5
4547

@@ -52,6 +54,7 @@ jobs:
5254
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
5355

5456
- uses: containerd/[email protected]
57+
if: github.repository == 'containerd/containerd'
5558
with:
5659
working-directory: src/github.com/containerd/containerd
5760
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
@@ -189,6 +192,8 @@ jobs:
189192
matrix:
190193
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019, windows-2022]
191194
go-version: ["1.21.8", "1.22.1"]
195+
exclude:
196+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
192197
steps:
193198
- uses: actions/checkout@v4
194199
- uses: ./.github/actions/install-go
@@ -381,6 +386,8 @@ jobs:
381386
- io.containerd.runc.v2
382387
runc: [runc, crun]
383388
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb]
389+
exclude:
390+
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
384391

385392
env:
386393
GOTEST: gotestsum --

0 commit comments

Comments
 (0)