2023-03-11 02:53:07 +01:00
|
|
|
name: Test for podman
|
|
|
|
|
2022-06-30 23:04:28 +02:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
podman-tests:
|
2022-12-08 16:41:50 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2022-06-30 23:04:28 +02:00
|
|
|
steps:
|
2022-10-13 02:06:43 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-10 08:56:47 +01:00
|
|
|
- name: Install requirements
|
2023-05-07 01:15:32 +02:00
|
|
|
run: sudo ./.github/scripts/dependency.sh
|
2022-11-29 12:40:26 +01:00
|
|
|
- run: make youki-dev
|
2022-06-30 23:04:28 +02:00
|
|
|
- run: sudo cp youki /usr/local/bin
|
2023-03-11 02:53:07 +01:00
|
|
|
- name: Install requirements for Podman
|
|
|
|
run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev libgpgme-dev bats
|
2022-06-30 23:04:28 +02:00
|
|
|
- name: Clone podman repository
|
2022-10-13 02:06:43 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-06-30 23:04:28 +02:00
|
|
|
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: 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
|