Initial implementation. (#1) #13
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] | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Verify | |
run: go mod verify | |
- name: Build | |
run: go build ./... | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: latest | |
install-mode: binary | |
- name: Prepare manifests for linting | |
run: | | |
mkdir manifests | |
go run deploy/main.go my-images v0.0.8 vanilla > manifests/vanilla.yaml | |
go run deploy/main.go my-images v0.0.8 ocp > manifests/ocp.yaml | |
go run deploy/main.go my-images v0.0.8 vanilla my-secret > manifests/vanilla-with-secret.yaml | |
go run deploy/main.go my-images v0.0.8 ocp my-secret > manifests/ocp-with-secret.yaml | |
- name: kube-linter | |
uses: stackrox/[email protected] | |
with: | |
directory: manifests |