Skip to content

build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 #398

build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1

build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 #398

Workflow file for this run

name: Go build
on:
pull_request: {}
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version-file: 'go.mod'
- name: Formatting check
run: |
go fmt ./...
git diff --exit-code
- name: Go mod check
run: |
go mod tidy
go mod vendor
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
- name: Run static checks
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.55.2
# use our .golangci.yml and configure output to be logged in the GHA, in addition to annotating the commit.
# see https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648 for output
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number
skip-cache: true
- name: govulncheck
uses: golang/govulncheck-action@7da72f730e37eeaad891fcff0a532d27ed737cd4
with:
go-version-file: 'go.mod'
go-package: './...'
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...