mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +00:00 
			
		
		
		
	ci: static-checks: Run tests depending on KVM
With this we're removing the dragonball static-checks CI, as the test is running here now. :-) Fixes: #7974 -- part 0 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/static-checks-dragonball.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/static-checks-dragonball.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -1,41 +0,0 @@ | ||||
| on: | ||||
|   pull_request: | ||||
|     types: | ||||
|       - opened | ||||
|       - edited | ||||
|       - reopened | ||||
|       - synchronize | ||||
|     paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ] | ||||
|  | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||
|   cancel-in-progress: true | ||||
|  | ||||
| name: Static checks dragonball | ||||
| jobs: | ||||
|   test-dragonball: | ||||
|     runs-on: garm-ubuntu-2004 | ||||
|     env: | ||||
|       RUST_BACKTRACE: "1" | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Set env | ||||
|         if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} | ||||
|         run: | | ||||
|           echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | ||||
|       - name: Install dependencies | ||||
|         run: | | ||||
|           sudo apt-get update | ||||
|           sudo apt-get install -y --no-install-recommends build-essential haveged | ||||
|       - name: Install Rust | ||||
|         if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} | ||||
|         run: | | ||||
|           ./ci/install_rust.sh | ||||
|           echo PATH="$HOME/.cargo/bin:$PATH" >> $GITHUB_ENV | ||||
|       - name: Run Unit Test | ||||
|         if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} | ||||
|         run: | | ||||
|           cd src/dragonball | ||||
|           cargo version | ||||
|           rustc --version | ||||
|           sudo -E env PATH=$PATH LIBC=gnu SUPPORT_VIRTUALIZATION=true make test | ||||
							
								
								
									
										37
									
								
								.github/workflows/static-checks.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/static-checks.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -122,6 +122,43 @@ jobs: | ||||
|         env: | ||||
|           RUST_BACKTRACE: "1" | ||||
|  | ||||
|   build-checks-depending-on-kvm: | ||||
|     runs-on: garm-ubuntu-2004-smaller | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         component: | ||||
|           - runtime-rs | ||||
|         include: | ||||
|           - component: runtime-rs | ||||
|             command: "sudo -E env PATH=$PATH LIBC=gnu SUPPORT_VIRTUALIZATION=true make test" | ||||
|           - component: runtime-rs | ||||
|             component-path: src/dragonball | ||||
|     steps: | ||||
|       - name: Checkout the code | ||||
|         uses: actions/checkout@v4 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
|       - name: Install system deps | ||||
|         run: | | ||||
|           sudo apt-get install -y build-essential musl-tools | ||||
|       - name: Install yq | ||||
|         run: | | ||||
|           sudo -E ./ci/install_yq.sh | ||||
|         env: | ||||
|           INSTALL_IN_GOPATH: false | ||||
|       - name: Install rust | ||||
|         run: | | ||||
|           export PATH="$PATH:/usr/local/bin" | ||||
|           ./tests/install_rust.sh | ||||
|       - name: Running `${{ matrix.command }}` for ${{ matrix.component }} | ||||
|         run: | | ||||
|           export PATH="$PATH:${HOME}/.cargo/bin" | ||||
|           cd ${{ matrix.component-path }} | ||||
|           ${{ matrix.command }} | ||||
|         env: | ||||
|           RUST_BACKTRACE: "1" | ||||
|  | ||||
|   static-checks: | ||||
|     runs-on: garm-ubuntu-2004 | ||||
|     strategy: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user