docs(runbooks): add docs for runbooks #164
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 & Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Setup go-junit-report | |
run: go install github.com/jstemmer/go-junit-report/v2@latest | |
- name: Test | |
run: make test-with-cover-report | |
- name: Test Report | |
uses: dorny/test-reporter@v1.6.0 | |
if: success() || failure() | |
continue-on-error: true | |
with: | |
name: GO Tests | |
path: report.xml | |
reporter: java-junit | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: | | |
report.xml | |
if: success() || failure() | |
continue-on-error: true | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Vendor | |
run: go mod vendor | |
- name: Build Deep | |
run: make deep | |
- name: Build deep-cli | |
run: make deep-cli | |
vendor-check: | |
name: Vendor check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.11.2' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check vendor | |
run: make vendor-check | |
lint: | |
name: Lint & Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- run: go install mvdan.cc/gofumpt@latest | |
- run: go install golang.org/x/tools/cmd/goimports@latest | |
- run: make check-fmt |