mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-07 00:14:21 +01:00
cargo/rust is installed in one step, we need to write the PATH update to GITHUBENV so that it becomes visible in the next steps. Fixes: #7221 Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- synchronize
|
|
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ]
|
|
|
|
name: Static checks dragonball
|
|
jobs:
|
|
test-dragonball:
|
|
runs-on: self-hosted
|
|
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
|