Fail early

This commit is contained in:
Jip-Hop 2024-07-16 16:17:40 +02:00
parent 2256d31b94
commit 5e78f3e13e
1 changed files with 3 additions and 1 deletions

View File

@ -30,9 +30,10 @@ jobs:
# Create a network namespace in the GitHub-hosted runner VM, # Create a network namespace in the GitHub-hosted runner VM,
# simulating a primary bridge network on TrueNAS SCALE # simulating a primary bridge network on TrueNAS SCALE
- name: Set up networking resources - name: Install packages and setup networking
run: | run: |
sudo -s <<END sudo -s <<END
set -euo pipefail
systemctl disable systemd-resolved --now systemctl disable systemd-resolved --now
rm /etc/resolv.conf rm /etc/resolv.conf
@ -87,6 +88,7 @@ jobs:
env: env:
PYTHONUNBUFFERED: 1 PYTHONUNBUFFERED: 1
run: | run: |
set -euo pipefail
python3 -m zipapp src/jlmkr -p "/usr/bin/env python3" -o jlmkr python3 -m zipapp src/jlmkr -p "/usr/bin/env python3" -o jlmkr
sudo chown 0:0 jlmkr ./test/test-jlmkr sudo chown 0:0 jlmkr ./test/test-jlmkr
sudo bash ./test/test-jlmkr sudo bash ./test/test-jlmkr