Fix invalid kubeconfig when \\n is present in kubeconfigStr #253
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: Go | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Golang environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: | | |
go get -v -t $(go list ./... | grep -v /examples) | |
go mod tidy | |
- name: Build gscloud | |
run: make | |
- name: Lint gscloud | |
run: | | |
go install honnef.co/go/tools/cmd/[email protected] | |
make lint | |
- name: Run tests | |
run: go test ./... |