2019-11-28 13:27:29 +03:00
|
|
|
name: go-test
|
2019-11-28 13:24:31 +03:00
|
|
|
|
2020-01-13 19:33:06 +03:00
|
|
|
on: [push, pull_request]
|
2019-11-28 13:24:31 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-12-14 11:44:17 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2019-11-28 13:24:31 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2021-08-26 14:03:09 +03:00
|
|
|
- uses: actions/setup-go@v2.1.4
|
2019-11-28 13:24:31 +03:00
|
|
|
with:
|
2021-04-12 12:57:29 +03:00
|
|
|
go-version: '1.16'
|
2019-11-28 13:24:31 +03:00
|
|
|
|
|
|
|
- name: test
|
2021-04-12 14:32:33 +03:00
|
|
|
run: go test ./... -coverprofile=profile.cov
|
|
|
|
|
2021-08-30 14:02:22 +03:00
|
|
|
- uses: shogo82148/actions-goveralls@v1.4.7
|
2021-04-12 14:32:33 +03:00
|
|
|
with:
|
|
|
|
path-to-profile: profile.cov
|