This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
Merge pull request #61 from h3adex/dependabot/go_modules/k8s.io/clien… #249
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
- 'dependabot/**' | |
jobs: | |
test-go-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22.0' | |
- name: Setup Kubernetes hosts for tests | |
run: | | |
sudo echo "127.0.0.1 127.0.0.1.default.svc.cluster.local 127.0.0.1.test.svc.cluster.local" | sudo tee -a /etc/hosts | |
- name: Install Dependencies | |
run: go get -v -t -d ./... | |
- name: Test Go Code | |
run: go test -cover ./pkg/... |