summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorIshita Sequeira <46771830+ishitasequeira@users.noreply.github.com>2024-12-19 18:55:18 +0530
committerGitHub <noreply@github.com>2024-12-19 08:25:18 -0500
commit03203db49b047f03a8e99b26ef8554942c2513d6 (patch)
treecb125934f7cc91c1635896e33cb190f4d025d484 /.github
parent14e60b8a83a4870257d69012d4cf097a29423565 (diff)
Update CI to run tests for registry-scanner separately (#971)
Signed-off-by: Ishita Sequeira <ishiseq29@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-tests.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml
index bff3aaa..5f3ae51 100644
--- a/.github/workflows/ci-tests.yaml
+++ b/.github/workflows/ci-tests.yaml
@@ -117,3 +117,27 @@ jobs:
- name: Run manifest tests
run: |
make test-manifests
+
+ registry-scanner:
+ name: Ensure registry-scanner Go modules synchronicity and run tests
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ - name: Setup Golang
+ uses: actions/setup-go@v5
+ with:
+ go-version: '1.22'
+ - name: Download all Go modules
+ run: |
+ cd registry-scanner
+ go mod download
+ - name: Check for tidyness of go.mod and go.sum
+ run: |
+ go mod tidy
+ git diff --exit-code -- .
+ - name: Run tests
+ env:
+ GNUPG_DISABLED: true
+ run: |
+ make test \ No newline at end of file