Skip to content

separate lint from test gha #1

separate lint from test gha

separate lint from test gha #1

Workflow file for this run

name: Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Display Go version
run: go version
- name: Build
run: go build .
- name: Test
run: go test -v -race ./...
- name: Create coverage report
run: go test -coverprofile=coverage.out
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d #v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}