Skip to content

chore(master): release 2.0.1 #141

chore(master): release 2.0.1

chore(master): release 2.0.1 #141

Workflow file for this run

name: Go
on:
push:
branches:
- master
pull_request:
env:
# renovate: datasource=golang-version depName=golang
GO_VERSION: '1.22.4'
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION: 'v1.59.0'
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
with:
go-version: '${{ env.GO_VERSION }}'
id: go
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -cover ./...
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5
with:
go-version: '${{ env.GO_VERSION }}'
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}