diff --git a/.github/workflows/skip_build.yml b/.github/workflows/skip_build.yml new file mode 100644 index 000000000..a45156efd --- /dev/null +++ b/.github/workflows/skip_build.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_build_setup.yml b/.github/workflows/skip_build_setup.yml new file mode 100644 index 000000000..08371afcd --- /dev/null +++ b/.github/workflows/skip_build_setup.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_cri_tests.yml b/.github/workflows/skip_cri_tests.yml new file mode 100644 index 000000000..a12dd237d --- /dev/null +++ b/.github/workflows/skip_cri_tests.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_firecracker_cri_tests.yml b/.github/workflows/skip_firecracker_cri_tests.yml new file mode 100644 index 000000000..086a34ddc --- /dev/null +++ b/.github/workflows/skip_firecracker_cri_tests.yml @@ -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 diff --git a/.github/workflows/skip_gvisor_cri_tests.yml b/.github/workflows/skip_gvisor_cri_tests.yml new file mode 100644 index 000000000..156f4f914 --- /dev/null +++ b/.github/workflows/skip_gvisor_cri_tests.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/skip_integration_tests.yml b/.github/workflows/skip_integration_tests.yml new file mode 100644 index 000000000..7bc609513 --- /dev/null +++ b/.github/workflows/skip_integration_tests.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_openyurt-unit-test.yml b/.github/workflows/skip_openyurt-unit-test.yml new file mode 100644 index 000000000..2510cd8d6 --- /dev/null +++ b/.github/workflows/skip_openyurt-unit-test.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_stargz_tests.yml b/.github/workflows/skip_stargz_tests.yml new file mode 100644 index 000000000..5043aff90 --- /dev/null +++ b/.github/workflows/skip_stargz_tests.yml @@ -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"' \ No newline at end of file diff --git a/.github/workflows/skip_unit_tests.yml b/.github/workflows/skip_unit_tests.yml new file mode 100644 index 000000000..ec1cb63a5 --- /dev/null +++ b/.github/workflows/skip_unit_tests.yml @@ -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"' \ No newline at end of file