Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci(build): add unit test job
  • Loading branch information
takoverflow committed Oct 10, 2025
commit 1f3e01204a06ee249d5969dba57da5b18b6c9f36
30 changes: 30 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,33 @@ jobs:
linter: gosec
run: .ci/check
go-version: '1.23.3'

test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: gardener/cc-utils/.github/actions/trusted-checkout@master
- uses: actions/setup-go@v5
with:
go-version: '1.23.3'
- name: run-tests
run: |
set -euo pipefail
mkdir /tmp/blobs.d
PATHINWS=src SKIP_INTEGRATION_TESTS=true .ci/test |& tee /tmp/blobs.d/test-log.txt
tar czf /tmp/blobs.d/test-log.tar.gz -C /tmp/blobs.d test-log.txt
- name: add-unittest-results-to-component-descriptor
uses: gardener/cc-utils/.github/actions/export-ocm-fragments@master
with:
blobs-directory: /tmp/blobs.d
ocm-resources: |
- name: test-results
relation: local
access:
type: localBlob
localReference: test-log.tar.gz
labels:
- name: gardener.cloud/purposes
value:
- test
Loading