Skip to content

Merge pull request #26 from zbindenren/dependabot/go_modules/github.c… #125

Merge pull request #26 from zbindenren/dependabot/go_modules/github.c…

Merge pull request #26 from zbindenren/dependabot/go_modules/github.c… #125

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@v6
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