Skip to content

Bump actions/checkout from 4.1.6 to 4.2.1 #16

Bump actions/checkout from 4.1.6 to 4.2.1

Bump actions/checkout from 4.1.6 to 4.2.1 #16

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GOLANGCI_LINT_VERSION: v1.58
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.20", "1.21", "1.22"]
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
- name: Test
run: make test
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v5
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Benchmark
run: make bench
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: golangci-lint
uses: golangci/[email protected]
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
- name: tidy
run: |
make download
git diff-index HEAD
git diff --minimal --color=always --compact-summary --exit-code HEAD || FAILED=true ;
if [[ $FAILED ]];
then echo "❗️please run \"go mod tidy\" locally and commit the changes"
exit 1
fi