Skip to content

github: use pinpointed ubuntu version on the runners #1941

github: use pinpointed ubuntu version on the runners

github: use pinpointed ubuntu version on the runners #1941

Workflow file for this run

name: Verify
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
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"
trivy-scan:
uses: "./.github/workflows/common-trivy.yaml"
codeql-scan:
uses: "./.github/workflows/common-codeql.yaml"