Skip to content

Commit

Permalink
add workflows that skip github ckecks properly
Browse files Browse the repository at this point in the history
Signed-off-by: JooYoung Park <[email protected]>
  • Loading branch information
JooyoungPark73 authored and lrq619 committed Jun 6, 2024
1 parent 4dccf25 commit 3803a86
Show file tree
Hide file tree
Showing 9 changed files with 245 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/skip_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: vHive build tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
workflow_dispatch:

env:
GOOS: linux
GO111MODULE: on

jobs:
build:
name: Build and check code quality
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'
25 changes: 25 additions & 0 deletions .github/workflows/skip_build_setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: vHive setup scripts build tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
workflow_dispatch:

env:
GOOS: linux
GO111MODULE: on

jobs:
build_setup:
name: Build setup scripts
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'
22 changes: 22 additions & 0 deletions .github/workflows/skip_cri_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: vHive CRI tests

on:
workflow_call:
inputs:
sandbox:
required: true
type: string

env:
GO111MODULE: on

jobs:
cri-tests:
name: CRI tests
env:
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_VHIVE_ARGS: "-dbg"
runs-on: ${{ fromJSON(format('["self-hosted", "{0}-cri"]', inputs.sandbox)) }}

steps:
- run: 'echo "This check not required"'
27 changes: 27 additions & 0 deletions .github/workflows/skip_firecracker_cri_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: vHive firecracker CRI tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:
schedule:
- cron: '0 19 * * 1'

env:
GO111MODULE: on

jobs:
firecracker-cri-tests:
uses: ./.github/workflows/skip_cri_tests.yml
with:
sandbox: firecracker
27 changes: 27 additions & 0 deletions .github/workflows/skip_gvisor_cri_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: vHive gVisor CRI tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:
schedule:
- cron: '0 19 * * 1'

env:
GO111MODULE: on

jobs:
gvisor-cri-tests:
uses: ./.github/workflows/skip_cri_tests.yml
with:
sandbox: gvisor
29 changes: 29 additions & 0 deletions .github/workflows/skip_integration_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: vHive integration tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:
schedule:
- cron: '0 19 * * 1'

env:
GOOS: linux
GO111MODULE: on

jobs:
integration-tests:
name: Integration tests
runs-on: [self-hosted , integ]
steps:
- run: 'echo "This check not required"'
24 changes: 24 additions & 0 deletions .github/workflows/skip_openyurt-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Test OpenYurt Deployer

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
workflow_dispatch:

env:
GOOS: linux
GO111MODULE: on

jobs:
openyurt-unit-test:
runs-on: ubuntu-latest
steps:
- run: 'echo "This check not required"'
27 changes: 27 additions & 0 deletions .github/workflows/skip_stargz_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: vHive stock-only stargz tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:

env:
GOOS: linux
GO111MODULE: on

jobs:
stargz-container-test:
name: Test running stargz-based image using kn
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'
39 changes: 39 additions & 0 deletions .github/workflows/skip_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: vHive unit tests

on:
push:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main, legacy-firecracker-v0.24.0-with-upf-support ]
paths:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:

env:
GOOS: linux
GO111MODULE: on

jobs:
unit-test:
name: Unit test
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'

profile-unit-test:
name: "Unit test: profile unit test"
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'

firecracker-containerd-interface-test:
name: "Unit tests: Firecracker-containerd interface"
runs-on: ubuntu-20.04
steps:
- run: 'echo "This check not required"'

0 comments on commit 3803a86

Please sign in to comment.