mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
test(annotations): print logs for annotations bats tests (#1680)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
||||
with:
|
||||
cache: false
|
||||
go-version: 1.20.x
|
||||
- uses: ./.github/actions/clean-runner
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
@@ -52,6 +53,21 @@ jobs:
|
||||
make bin/dex
|
||||
./bin/dex serve $GITHUB_WORKSPACE/test/dex/config-dev.yaml &
|
||||
cd $GITHUB_WORKSPACE
|
||||
- name: Check disk space before build
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
set -x
|
||||
df -h
|
||||
sudo ls -lRh /tmp/* || true
|
||||
sudo du -sh /tmp || true
|
||||
sudo du -sh /tmp/* || true
|
||||
sudo find /tmp/ -size +5M | sudo xargs ls -lh
|
||||
du -sh ./* || true
|
||||
find ./ -size +5M | xargs ls -lh
|
||||
sudo du -sh /var/
|
||||
sudo du -sh /var/lib/docker/
|
||||
du -sh /home/runner/work/
|
||||
set +x
|
||||
- name: Run referrers tests
|
||||
run: |
|
||||
make test-bats-referrers
|
||||
@@ -95,3 +111,19 @@ jobs:
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: fake
|
||||
AWS_SECRET_ACCESS_KEY: fake
|
||||
- name: Check disk space after build
|
||||
if: always()
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
set -x
|
||||
df -h
|
||||
sudo ls -lRh /tmp/* || true
|
||||
sudo du -sh /tmp || true
|
||||
sudo du -sh /tmp/* || true
|
||||
sudo find /tmp/ -size +5M | sudo xargs ls -lh
|
||||
du -sh ./* || true
|
||||
find ./ -size +5M | xargs ls -lh
|
||||
sudo du -sh /var/
|
||||
sudo du -sh /var/lib/docker/
|
||||
du -sh /home/runner/work/
|
||||
set +x
|
||||
@@ -24,7 +24,8 @@ function setup_file() {
|
||||
"port": "8080"
|
||||
},
|
||||
"log": {
|
||||
"level": "debug"
|
||||
"level": "debug",
|
||||
"output": "${BATS_FILE_TMPDIR}/zot.log"
|
||||
},
|
||||
"extensions":{
|
||||
"search": {
|
||||
@@ -57,6 +58,7 @@ EOF
|
||||
}
|
||||
|
||||
function teardown_file() {
|
||||
cat ${BATS_FILE_TMPDIR}/zot.log >&3
|
||||
local zot_root_dir=${BATS_FILE_TMPDIR}/zot
|
||||
local oci_data_dir=${BATS_FILE_TMPDIR}/oci
|
||||
local roots_data_dir=${BATS_FILE_TMPDIR}/roots
|
||||
|
||||
Reference in New Issue
Block a user