fix(oscMachineTemplate): Nil pointer due to error not managed #982
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: build | |
on: | |
pull_request: | |
branches: [main] | |
paths: | |
- "**.go" | |
- "**.yaml" | |
- "!capm.yaml" | |
- "!osc-secret.yaml" | |
- "!example/**.yaml" | |
- "!helm/**" | |
- "Makefile" | |
- "!docs/src/**" | |
- "!hack/json-format/*.sh" | |
- "!hack/json-format/src/*.rs" | |
- "!hack/json-format/Makefile" | |
- "!hack/json-format/Cargo.*" | |
- "!hack/json-format/tests/*.rs" | |
push: | |
branches: | |
- 'main' | |
paths: | |
- "**.go" | |
- "**.yaml" | |
- "!capm.yaml" | |
- "!osc-secret.yaml" | |
- "!example/**.yaml" | |
- "!helm/**" | |
- "Makefile" | |
- "!docs/src/**" | |
- "!hack/json-format/*.sh" | |
- "!hack/json-format/src/*.rs" | |
- "!hack/json-format/Makefile" | |
- "!hack/json-format/Cargo.*" | |
- "!hack/json-format/tests/*.rs" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19.8' | |
- name: check-gofmt | |
run: make checkfmt | |
shell: bash | |
- name: Check with boilerplate | |
run: make verify-boilerplate | |
shell: bash | |
- name: check with ShellCheck | |
run: make install-shellcheck | |
shell: bash | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: check with yamlint | |
run: yamllint -c .github/linters/yaml-lint.yaml . --format github | |
- name: Lint | |
run: make vet | |
shell: bash |