Merge pull request #1032 from marquiz/devel/ci-verify-refactor #820
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: Verify | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
id: go | |
- name: Install golangci-lint | |
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2 | |
- name: Gofmt | |
run: make format | |
- name: Build | |
run: make | |
- name: Test | |
run: make test | |
- name: Golangci-lint | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make golangci-lint | |
- name: Codecov report | |
run: bash <(curl -s https://codecov.io/bash) | |
build-docs: | |
name: Verify docs build and gh-pages update | |
uses: "./.github/workflows/common-build-docs.yaml" |