ci: Bump actions/checkout from 4.1.1 to 4.1.2 #159
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
- v* | |
pull_request: | |
branches: | |
- master | |
- v* | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: ["1.15", "1.19", "1.20"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Run static checks | |
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 | |
with: | |
version: v1.51.1 | |
# 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 --timeout 5m | |
skip-cache: true | |
- name: Build | |
run: go build | |
- name: Run unit tests | |
run: go test -v -race -cover |