Merge pull request #9963 from dmcgowan/gha-on-fork
Update github actions ci to run on forks
This commit is contained in:
commit
90ec00c80c
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -24,6 +24,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019]
|
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019]
|
||||||
|
exclude:
|
||||||
|
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -39,7 +42,6 @@ jobs:
|
|||||||
#
|
#
|
||||||
project:
|
project:
|
||||||
name: Project Checks
|
name: Project Checks
|
||||||
if: github.repository == 'containerd/containerd'
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
@ -52,6 +54,7 @@ jobs:
|
|||||||
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
- uses: ./src/github.com/containerd/containerd/.github/actions/install-go
|
||||||
|
|
||||||
- uses: containerd/project-checks@v1.1.0
|
- uses: containerd/project-checks@v1.1.0
|
||||||
|
if: github.repository == 'containerd/containerd'
|
||||||
with:
|
with:
|
||||||
working-directory: src/github.com/containerd/containerd
|
working-directory: src/github.com/containerd/containerd
|
||||||
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -189,6 +192,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019, windows-2022]
|
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb, macos-12, windows-2019, windows-2022]
|
||||||
go-version: ["1.21.8", "1.22.1"]
|
go-version: ["1.21.8", "1.22.1"]
|
||||||
|
exclude:
|
||||||
|
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/install-go
|
- uses: ./.github/actions/install-go
|
||||||
@ -381,6 +386,8 @@ jobs:
|
|||||||
- io.containerd.runc.v2
|
- io.containerd.runc.v2
|
||||||
runc: [runc, crun]
|
runc: [runc, crun]
|
||||||
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb]
|
os: [ubuntu-22.04, actuated-arm64-4cpu-16gb]
|
||||||
|
exclude:
|
||||||
|
- os: ${{ github.repository != 'containerd/containerd' && 'actuated-arm64-4cpu-16gb' }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GOTEST: gotestsum --
|
GOTEST: gotestsum --
|
||||||
|
Loading…
Reference in New Issue
Block a user