-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authenticate before pulling test images. Add a check to verify licens…
…e compliance. Enable Go report card and code scan badges.
- Loading branch information
1 parent
7bfb5f0
commit ae1012b
Showing
5 changed files
with
5,194 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,13 @@ jobs: | |
- name: Install test dependencies | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
go install github.com/google/[email protected] | ||
timeout-minutes: 5 | ||
|
||
- name: Verify license compliance and the NOTICE file is updated | ||
run: | | ||
make test-licenses | ||
- name: Run unit tests | ||
run: | | ||
ACK_GINKGO_DEPRECATIONS=1.16.5 TESTARGS="-v -ginkgo.v" make test | ||
|
@@ -407,17 +412,17 @@ jobs: | |
with: | ||
cosign-release: "v2.1.1" | ||
|
||
- name: Pull tested CSI driver image from ghcr.io | ||
run: | | ||
docker pull ${{ env.TEST_IMAGE_NAME }}:${{ github.sha }} | ||
- name: Log in to the GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pull tested CSI driver image from ghcr.io | ||
run: | | ||
docker pull ${{ env.TEST_IMAGE_NAME }}:${{ github.sha }} | ||
# This uses the semantic versioning option for https://github.com/docker/metadata-action#semver | ||
- name: Extract metadata for CSI driver container image | ||
id: meta | ||
|
@@ -507,7 +512,7 @@ jobs: | |
cleanup-test-images: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 3 | ||
needs: publish-images | ||
needs: [publish-images, e2e-tests, operator-e2e-tests] | ||
if: always() | ||
steps: | ||
- name: Extract CSI driver test package name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.