Skip to content

Commit

Permalink
feat: Add step for exporting testcache entries
Browse files Browse the repository at this point in the history
add it as artefact
  • Loading branch information
Matovidlo committed Dec 12, 2024
1 parent 215847a commit e23c58b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ jobs:
TEST_KBC_PROJECTS_FILE: '${{ github.workspace }}/${{ vars.TEST_KBC_PROJECTS_FILE }}'
UNIT_ETCD_ENABLED: ${{ matrix.name == 'linux' && 'true' || 'false' }}

- name: Upload test cache
uses: actions/upload-artifact@v4
with:
name: gotestcache
path: ${{ github.workspace }}/cache.out

- name: Check how much space is left after unit test
if: matrix.name == 'linux'
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
# Run tests, sequentially because the API is shared resource
echo "Running tests ..."
export KBC_VERSION_CHECK=false # do not check the latest version in the tests
cmd="gotestsum --no-color=false --format \"$TEST_LOG_FORMAT\" -- -timeout 1800s -p $TEST_PARALLELISM_PKG -parallel $TEST_PARALLELISM $TEST_ARGS "$TEST_PACKAGE" $@"
cmd="gotestsum --no-color=false --format \"$TEST_LOG_FORMAT\" -- -timeout 1800s -p $TEST_PARALLELISM_PKG -parallel $TEST_PARALLELISM $TEST_ARGS "$TEST_PACKAGE" $@ 2> cache.out"
echo $cmd
eval $cmd
echo "Ok. All tests passed."
Expand Down

0 comments on commit e23c58b

Please sign in to comment.