chore: enhance CI process (#20)
* chore: enhance CI process * chore: enhance ci * chore: typo
This commit is contained in:
parent
7afdc344a0
commit
a842b13d25
5 changed files with 31 additions and 7 deletions
8
.github/workflows/.dependabot/config.yml
vendored
8
.github/workflows/.dependabot/config.yml
vendored
|
@ -1,8 +0,0 @@
|
|||
version: 1
|
||||
update_configs:
|
||||
- package_manager: "go:modules"
|
||||
directory: "/"
|
||||
update_schedule: "daily"
|
||||
commit_message:
|
||||
prefix: "chore"
|
||||
include_scope: true
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
@ -8,12 +8,16 @@ jobs:
|
|||
go: ['1.11', '1.12', '1.13', '1.14']
|
||||
name: Go ${{ matrix.go }} test
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v1
|
||||
uses: actions/setup-go@v2-beta
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go test -race ./pkg/...
|
||||
- run: go test -race -v -coverprofile=profile.cov ./pkg/...
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
file: ./profile.cov
|
||||
name: codecov-go
|
||||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: [test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue