Add basic unit test framework (#390)

Co-authored-by: Marco Franssen <[email protected]>
This commit is contained in:
kfox1111
2023-07-19 18:36:07 +00:00
committed by GitHub
co-authored by Marco Franssen
parent 088b29608e
commit a4c1de7b30
7 changed files with 439 additions and 1 deletions
+18
View File
@@ -12,6 +12,7 @@ on:
- '.github/tests/**/*.sh'
- '.github/tests/**/*.json'
- 'examples/**/*.yaml'
- 'tests/**/*'
- 'helm-docs.sh'
concurrency:
@@ -69,6 +70,23 @@ jobs:
exit 1
fi
- name: Setup Go
uses: actions/[email protected]
with:
go-version-file: tests/go.mod
cache-dependency-path: tests/go.sum
check-latest: true
- name: Install do dependencies
run: |
go mod download
go install github.com/onsi/ginkgo/v2/ginkgo@latest
working-directory: ./tests/unit
- name: Run Unit Tests
run: ginkgo
working-directory: ./tests/unit
lint-chart:
runs-on: ubuntu-22.04