Skip to content

build(deps): bump golangci/golangci-lint-action from 3 to 4 #67

build(deps): bump golangci/golangci-lint-action from 3 to 4

build(deps): bump golangci/golangci-lint-action from 3 to 4 #67

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
stable: true
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.52.0
skip-cache: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Run Unit tests
run: go test -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github