Skip to content

Commit

Permalink
Merge pull request #8084 from AkihiroSuda/ci-skip-on-fork-1.5
Browse files Browse the repository at this point in the history
[release/1.5] CI: skip some jobs when `repo != containerd/containerd`
  • Loading branch information
estesp authored Feb 10, 2023
2 parents 6c00831 + 34451bc commit 9e9f4c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
#
project:
name: Project Checks
if: github.repository == 'containerd/containerd'
runs-on: ubuntu-18.04
timeout-minutes: 5

Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
# Make sure binaries compile with other platforms
crossbuild:
name: Crossbuild Binaries
needs: [project, linters, protos, man]
needs: [linters, protos, man]
runs-on: ubuntu-18.04
timeout-minutes: 10
strategy:
Expand Down Expand Up @@ -190,7 +191,7 @@ jobs:
name: Binaries
runs-on: ${{ matrix.os }}
timeout-minutes: 10
needs: [project, linters, protos, man]
needs: [linters, protos, man]

strategy:
matrix:
Expand Down Expand Up @@ -225,7 +226,7 @@ jobs:
name: Windows Integration
runs-on: windows-2019
timeout-minutes: 30
needs: [project, linters, protos, man]
needs: [linters, protos, man]
env:
GOTEST: gotestsum --

Expand Down Expand Up @@ -308,7 +309,7 @@ jobs:
name: Linux Integration
runs-on: ubuntu-18.04
timeout-minutes: 40
needs: [project, linters, protos, man]
needs: [linters, protos, man]

strategy:
fail-fast: false
Expand Down Expand Up @@ -461,7 +462,7 @@ jobs:
name: MacOS unit tests
runs-on: macos-12
timeout-minutes: 10
needs: [project, linters, protos, man]
needs: [linters, protos, man]
env:
GOTEST: gotestsum --

Expand All @@ -487,7 +488,7 @@ jobs:
# nested virtualization is only available on macOS hosts
runs-on: macos-12
timeout-minutes: 45
needs: [project, linters, protos, man]
needs: [linters, protos, man]
strategy:
matrix:
# Currently crun is disabled to decrease CI flakiness.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
CodeQL-Build:
if: github.repository == 'containerd/containerd'

strategy:
fail-fast: false
Expand Down

0 comments on commit 9e9f4c8

Please sign in to comment.