Skip to content

Update actions/checkout action to v4 #185

Update actions/checkout action to v4

Update actions/checkout action to v4 #185

Workflow file for this run

name: Execute automated checks
on:
- push
jobs:
# https://github.com/golangci/golangci-lint-action#how-to-use
go-lint:
name: Lint go code
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Lint go code with golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # renovate: tag=v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.44.1
go-test:
name: Verify go tests
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup golang
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # renovate: tag=v2
with:
go-version: '1.17.7'
- name: Print go version
run: go version
- name: Execute go tests
run: go test -v ./...