mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 13:14:33 +00:00
ci: static-checks: Move "make check" to the new test matrix
We're moving it out of the previous "static-checks" confusing matrix, and adding it to the matrix that was currently being used for the `make vendor` checks. This will allow us to have one job per component, and with that we can easily run those in parallel and 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
473ec87806
commit
bf888b9a5e
10
.github/workflows/static-checks.yaml
vendored
10
.github/workflows/static-checks.yaml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
echo "Check passed"
|
echo "Check passed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-vendor:
|
build-checks:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -49,6 +49,9 @@ jobs:
|
|||||||
- log-parser-rs
|
- log-parser-rs
|
||||||
- runk
|
- runk
|
||||||
- trace-forwarder
|
- trace-forwarder
|
||||||
|
command:
|
||||||
|
- "make vendor"
|
||||||
|
- "make check"
|
||||||
include:
|
include:
|
||||||
- component: agent
|
- component: agent
|
||||||
component-path: src/agent
|
component-path: src/agent
|
||||||
@ -88,10 +91,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./tests/install_rust.sh
|
./tests/install_rust.sh
|
||||||
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
|
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
|
||||||
- name: Check ${{ matrix.component }} vendored code
|
- name: Running `${{ matrix.command }}` for ${{ matrix.component }}
|
||||||
run: |
|
run: |
|
||||||
cd ${{ matrix.component-path }}
|
cd ${{ matrix.component-path }}
|
||||||
make vendor
|
${{ matrix.command }}
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: "1"
|
RUST_BACKTRACE: "1"
|
||||||
|
|
||||||
@ -105,7 +108,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
cmd:
|
cmd:
|
||||||
- "make static-checks"
|
- "make static-checks"
|
||||||
- "make check"
|
|
||||||
- "make test"
|
- "make test"
|
||||||
- "sudo -E PATH=\"$PATH\" make test"
|
- "sudo -E PATH=\"$PATH\" make test"
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user