Tweak test-core-linux to fix potential bugs

This commit is contained in:
Théophile Diot 2023-10-16 12:27:09 +02:00
parent 13be6a43c9
commit 08944b901c
No known key found for this signature in database
GPG Key ID: 248FEA4BAE400D06
1 changed files with 3 additions and 2 deletions

View File

@ -67,8 +67,6 @@ jobs:
- name: Fix version without a starting number
if: inputs.RELEASE == 'testing' || inputs.RELEASE == 'dev'
run: echo "force-bad-version" | sudo tee -a /etc/dpkg/dpkg.cfg
- name: Install BunkerWeb
run: sudo apt install -fy /tmp/bunkerweb.deb
- name: Edit configuration files
run: |
# Misc
@ -88,8 +86,11 @@ jobs:
echo "LOG_LEVEL=info" | sudo tee -a /etc/bunkerweb/variables.env
sudo chown nginx:nginx /etc/bunkerweb/variables.env
sudo chmod 777 /etc/bunkerweb/variables.env
- name: Install BunkerWeb
run: sudo apt install -fy /tmp/bunkerweb.deb
- name: Run tests
run: |
cd ./tests/core/${{ inputs.TEST }}
MAKEFLAGS="-j $(nproc)" find . -name "requirements.txt" -exec pip install --no-cache-dir --require-hashes -r {} \;
sudo truncate -s 0 /var/log/bunkerweb/error.log
./test.sh "linux"