session/.gitea/workflows/test.yml
Lunny Xiao 16768d98ec
All checks were successful
test / check and test (push) Successful in 10m9s
Update CI (#8)
Reviewed-on: #8
2024-03-16 03:58:57 +00:00

20 lines
420 B
YAML

name: test
on:
- push
- pull_request
jobs:
lint:
name: check and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: build
run: go build -v
- name: vet
run: go vet ./...
- name: test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic