Skip to content

Commit

Permalink
dl and install new crun to fix flaky tests (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Feb 28, 2024
1 parent c694272 commit be52651
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@ jobs:
python3 -m pip install -r molecule/requirements.txt
ansible-galaxy collection install community.general
sudo apt update && sudo apt install -y podman
# we have to patch crun here because Ubuntu fails with the errors similar to the
# github issue below.
# https://github.com/containers/crun/issues/1308
- name: patch crun
run: |
export CRUN_VER='1.14.3'
mkdir -p "${HOME}/.local/bin"
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
chmod +x "${HOME}/.local/bin/crun"
mkdir -p "${HOME}/.config/containers"
cat << EOF > "${HOME}/.config/containers/containers.conf"
[engine.runtimes]
crun = [
"${HOME}/.local/bin/crun",
"/usr/bin/crun"
]
EOF
- name: run tests
run: molecule test --scenario-name=${{ matrix.scenario }}
env:
Expand Down

0 comments on commit be52651

Please sign in to comment.