Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisferrand committed Apr 11, 2024
1 parent a9d85f0 commit cfb9215
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:

test:
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
OS=xUbuntu_20.04
CRIO_VERSION=1.21
CRIO_VERSION=1.23
KUBIC_REPO=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable
sudo tee /etc/apt/sources.list.d/kubic-libcontainers.list <<< "deb $KUBIC_REPO/$OS/ /"
sudo tee -a /etc/apt/sources.list.d/kubic-libcontainers.list <<< "deb $KUBIC_REPO:/cri-o:/$CRIO_VERSION/$OS/ /"
Expand All @@ -66,14 +66,17 @@ jobs:
sudo apt-get -y install cri-o cri-o-runc cri-tools hardlink
# Fix libpcre2-posix2 package version, use the
sudo apt-get -y install --reinstall --allow-downgrades libpcre2-posix2/$(lsb_release -cs)
#sudo apt-get -y install --reinstall --allow-downgrades libpcre2-posix2/$(lsb_release -cs)
# Also need skopeo ; but it is already installed
bash <(curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh)
# Start cri-o service
sudo systemctl start crio
containerd config default > /etc/containerd/config.toml
systemctl restart containerd
# TODO: cache the installed image?

- name: Downgrade Oras to 0.12.0
Expand All @@ -86,6 +89,14 @@ jobs:

- name: Unit testing with bash_unit
run: |
containerd --version || true
ctr --version || true
sudo ctr plugin ls
sudo cat /etc/containerd/config.toml
sleep 5
sudo ctr plugin ls
export IMAGE="${{ env.DOCKER_IMAGE }}:${{ github.sha }}"
sudo FORCE_COLOR=true ./bash_unit test.sh
# TODO: parse individual tests results (in TAP format)
Expand Down

0 comments on commit cfb9215

Please sign in to comment.