Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
canlopes committed Nov 26, 2024
1 parent ae71e2b commit 852f1e8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,30 @@ jobs:
path: ./*
key: ${{ github.sha }}

- name: Install libarchive-tools
shell: bash
run: |
try_apt() {
sudo rm -f /var/lib/apt/lists/lock
sudo rm -f /var/cache/apt/archives/lock
sudo rm -f /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt-get update && sudo apt-get install -y libarchive-tools
}
for i in {1..3}; do
echo "Attempt $i to install libarchive-tools"
if try_apt; then
echo "Successfully installed libarchive-tools"
exit 0
fi
echo "Attempt $i failed, waiting 10 seconds..."
sleep 10
done

echo "Failed to install libarchive-tools after 3 attempts"
exit 1

- name: Run e2e tests
run: |
pnpm run start & # Start the server in background
Expand Down

0 comments on commit 852f1e8

Please sign in to comment.