Skip to content

Commit

Permalink
Temp changes to runc oci tests on runc
Browse files Browse the repository at this point in the history
  • Loading branch information
YJDoc2 committed Feb 26, 2024
1 parent 919ff4a commit 75dbcfa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/temp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: validate oci go tests on runc

on:
push:
branches:
- **
pull_request:
branches:
- main
workflow_dispatch:

jobs:
oci-validation-go-runc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install just
uses: taiki-e/install-action@just
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: true
cache-dependency-path: tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools/go.sum
- name: Run integration tests
run: just test-oci

3 changes: 1 addition & 2 deletions scripts/oci_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ROOT=$(git rev-parse --show-toplevel)

RUNTIME=${1:-.}/youki
RUNTIME=runc
OCI_TEST_DIR=${ROOT}/tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools
PATTERN=${2:-.}
cd $OCI_TEST_DIR
Expand Down Expand Up @@ -126,7 +126,6 @@ for case in "${test_cases[@]}"; do
continue;
fi
cat $logfile
exit 1
fi
sleep 1
done

0 comments on commit 75dbcfa

Please sign in to comment.