Skip to content

Merge pull request #29 from vitalvas/dependabot/go_modules/golang.org… #50

Merge pull request #29 from vitalvas/dependabot/go_modules/golang.org…

Merge pull request #29 from vitalvas/dependabot/go_modules/golang.org… #50

Workflow file for this run

name: tests
on:
push:
tags:
- v*
branches:
- master
- main
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: go tests
run: go test -v -cover ./...
- name: go tests - race
run: go test -race -v -cover ./...
- name: go tests - coverprofile
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.txt