Skip to content

Remove go.test.sh and run go test directly in CI #4

Remove go.test.sh and run go test directly in CI

Remove go.test.sh and run go test directly in CI #4

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
go: ['1.21', '1.22', 'stable']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
run: go test -race -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}