mirror of
https://github.com/asmogo/nws.git
synced 2024-12-14 19:26:21 +00:00
18 lines
440 B
YAML
18 lines
440 B
YAML
name: tests
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
golang:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.21
|
|
- name: Golang run tests
|
|
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./...
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
verbose: true # optional (default = false) |