From f4bb573c40b805fd9b33402da4e655cfc208ce3e Mon Sep 17 00:00:00 2001 From: Stefin Date: Sat, 25 Jun 2022 16:51:35 +0530 Subject: [PATCH 1/2] Added podman local system tests Signed-off-by: Stefin --- .github/workflows/podman_tests.yaml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/podman_tests.yaml diff --git a/.github/workflows/podman_tests.yaml b/.github/workflows/podman_tests.yaml new file mode 100644 index 000000000..211bf785c --- /dev/null +++ b/.github/workflows/podman_tests.yaml @@ -0,0 +1,36 @@ +on: + push: + branches: + - main + pull_request: + branches: + - main + + +jobs: + podman-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get -y update + - run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev libgpgme-dev + - run: make build + - run: sudo cp youki /usr/local/bin + - name: Clone podman repository + uses: actions/checkout@v2 + with: + repository: containers/podman + - uses: actions/setup-go@v2 + with: + go-version: '1.18' + - name: Build podman + run: make binaries + - name: Install tools + run: make install.tools + - name: Install bats + run: sudo ./hack/install_bats.sh + - name: Run podman test + run: sudo OCI_RUNTIME=/usr/local/bin/youki ./hack/bats 2>&1 | tee build.log + - name: Adding Summary + run: | + echo "Total tests: 360 Failed tests: $(cat build.log | grep " ok " | wc -l)" >> $GITHUB_STEP_SUMMARY From 0aa074c13aa3e4efc83bc35cf970a2eedfce08aa Mon Sep 17 00:00:00 2001 From: Stefin Date: Thu, 30 Jun 2022 12:39:55 +0530 Subject: [PATCH 2/2] Changed test to run once per day --- .github/workflows/podman_tests.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/podman_tests.yaml b/.github/workflows/podman_tests.yaml index 211bf785c..785a56f57 100644 --- a/.github/workflows/podman_tests.yaml +++ b/.github/workflows/podman_tests.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - pull_request: - branches: - - main - + schedule: + - cron: "0 0 * * *" jobs: podman-tests: