Unit tests #640
Workflow file for this run
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
name: Unit tests | |
on: | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
DOCKERHUB_USERNAME: | |
description: 'Optional docker user to authenticate with. If empty docker access will be anonymous.' | |
required: false | |
DOCKERHUB_TOKEN: | |
description: 'If DOCKERHUB_USERNAME was set, this is the password for that use' | |
required: false | |
jobs: | |
ut: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: ./.github/actions/setup-go | |
# We use a container hosted on docker to run the helm unittest. If | |
# provided, we login to avoid hitting rate limiting for anonymous access. | |
- name: Login to Docker Hub | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
if: ${{ env.DOCKERHUB_USERNAME != '' }} | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Run unit tests | |
run: make test |