mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-18 13:54:29 +01:00
Static checks for dragonball are landing on any of the self-hosted runners, and the reason for that is because "self-hosted" was the label selector used. Let's use "dragonball" instead, as the machine has that label as well. Fixes: #7464 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
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: dragonball
|
|
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 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
|