mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
ci: static-checks: Move vendor check to its own job
Similarly to the static-check jobs, those jobs can be run on the zero cost runners. Fixes: #7974 -- part 0 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
6794d4c843
commit
e2c61a152c
62
.github/workflows/static-checks.yaml
vendored
62
.github/workflows/static-checks.yaml
vendored
@ -34,6 +34,67 @@ jobs:
|
|||||||
echo "Check passed"
|
echo "Check passed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
check-vendor:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
component:
|
||||||
|
- agent
|
||||||
|
- dragonball
|
||||||
|
- runtime
|
||||||
|
- runtime-rs
|
||||||
|
- agent-ctl
|
||||||
|
- kata-ctl
|
||||||
|
- log-parser-rs
|
||||||
|
- runk
|
||||||
|
- trace-forwarder
|
||||||
|
include:
|
||||||
|
- component: agent
|
||||||
|
component-path: src/agent
|
||||||
|
- component: dragonball
|
||||||
|
component-path: src/dragonball
|
||||||
|
- component: runtime
|
||||||
|
component-path: src/runtime
|
||||||
|
- component: runtime-rs
|
||||||
|
component-path: src/runtime-rs
|
||||||
|
- component: agent-ctl
|
||||||
|
component-path: src/tools/agent-ctl
|
||||||
|
- component: kata-ctl
|
||||||
|
component-path: src/tools/kata-ctl
|
||||||
|
- component: log-parser-rs
|
||||||
|
component-path: src/tools/log-parser-rs
|
||||||
|
- component: runk
|
||||||
|
component-path: src/tools/runk
|
||||||
|
- component: trace-forwarder
|
||||||
|
component-path: src/tools/trace-forwarder
|
||||||
|
steps:
|
||||||
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Install yq
|
||||||
|
run: |
|
||||||
|
./ci/install_yq.sh
|
||||||
|
env:
|
||||||
|
INSTALL_IN_GOPATH: false
|
||||||
|
- name: Install golang
|
||||||
|
if: ${{ matrix.component == 'runtime' }}
|
||||||
|
run: |
|
||||||
|
./tests/install_go.sh -f -p
|
||||||
|
echo "/usr/local/go/bin" >> $GITHUB_PATH
|
||||||
|
- name: Install rust
|
||||||
|
if: ${{ matrix.component != 'runtime' }}
|
||||||
|
run: |
|
||||||
|
./tests/install_rust.sh
|
||||||
|
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
- name: Check ${{ matrix.component }} vendored code
|
||||||
|
run: |
|
||||||
|
cd ${{ matrix.component-path }}
|
||||||
|
make vendor
|
||||||
|
env:
|
||||||
|
RUST_BACKTRACE: "1"
|
||||||
|
|
||||||
static-checks:
|
static-checks:
|
||||||
runs-on: garm-ubuntu-2004
|
runs-on: garm-ubuntu-2004
|
||||||
strategy:
|
strategy:
|
||||||
@ -43,7 +104,6 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
cmd:
|
cmd:
|
||||||
- "make vendor"
|
|
||||||
- "make static-checks"
|
- "make static-checks"
|
||||||
- "make check"
|
- "make check"
|
||||||
- "make test"
|
- "make test"
|
||||||
|
Loading…
Reference in New Issue
Block a user