renovate.json: align with rest of metal-toolbox #59
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 and build image | |
on: [pull_request, push] | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: --config .golangci.yml --timeout 2m | |
version: v1.52.2 | |
- name: Test | |
run: go test ./... | |
verify-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Generate docs | |
run: make gen-docs | |
- name: Verify docs are up to date | |
run: git diff | (! grep .) | |
build: | |
runs-on: ubuntu-latest | |
needs: [lint-test, verify-docs] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: build binary | |
run: make build-linux | |
- name: Inspect action SARIF report | |
run: cat ${{ steps.scan.outputs.sarif }} | |
if: always() |