Skip to content

Commit 03203db

Browse files
Update CI to run tests for registry-scanner separately (#971)
Signed-off-by: Ishita Sequeira <[email protected]>
1 parent 14e60b8 commit 03203db

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci-tests.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,27 @@ jobs:
117117
- name: Run manifest tests
118118
run: |
119119
make test-manifests
120+
121+
registry-scanner:
122+
name: Ensure registry-scanner Go modules synchronicity and run tests
123+
runs-on: ubuntu-latest
124+
steps:
125+
- name: Checkout code
126+
uses: actions/checkout@v4
127+
- name: Setup Golang
128+
uses: actions/setup-go@v5
129+
with:
130+
go-version: '1.22'
131+
- name: Download all Go modules
132+
run: |
133+
cd registry-scanner
134+
go mod download
135+
- name: Check for tidyness of go.mod and go.sum
136+
run: |
137+
go mod tidy
138+
git diff --exit-code -- .
139+
- name: Run tests
140+
env:
141+
GNUPG_DISABLED: true
142+
run: |
143+
make test

0 commit comments

Comments
 (0)