Skip to content

Merge pull request #86 from nspcc-dev/add-lables #274

Merge pull request #86 from nspcc-dev/add-lables

Merge pull request #86 from nspcc-dev/add-lables #274

Workflow file for this run

name: Go
on: [push]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20', '1.21']
steps:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go mod download
- name: Tests
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash)