Skip to content

build: Add GitHub workflow action that runs tests with race detection… #1

build: Add GitHub workflow action that runs tests with race detection…

build: Add GitHub workflow action that runs tests with race detection… #1

Workflow file for this run

name: Go Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Check out code
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Run tests with race detection
run: go test -v -race ./...
- name: Run tests with coverage
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1