This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
Manually register the port mapping for k8s API #401
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 & Test | |
on: | |
push: {} | |
pull_request: {} | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run golangci-lint | |
# Run `go build` to cache things for the linter, so it doesn't time out. | |
run: go build -v ./... | |
env: | |
CGO_ENABLED: '0' | |
- uses: golangci/[email protected] | |
with: | |
args: --verbose --timeout 3m | |
# Disable pkg & build cache flags; the manual build step fills those in, | |
# so repopulating the cache just shows a pile of errors. | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: Unit tests | |
run: make test |