fix(neighbours): only check other kubenurse pods #354
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: lint and test | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint-go: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- uses: actions/checkout@v4 | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55 | |
args: --timeout 5m | |
lint-helm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Helm lint | |
shell: bash | |
run: | | |
helm lint ./helm/kubenurse/ | |
test-go: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Run unit tests | |
run: go test -race -covermode atomic -coverprofile=profile.cov ./... | |
- name: Send coverage report | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
go install github.com/mattn/goveralls@v0.0.11 | |
goveralls -coverprofile=profile.cov -service=github |