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
22
.codecov/codecov.yml
Normal file
22
.codecov/codecov.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
codecov:
|
||||
notify:
|
||||
require_ci_to_pass: yes
|
||||
coverage:
|
||||
precision: 2
|
||||
round: down
|
||||
range: "70...100"
|
||||
status:
|
||||
project: yes
|
||||
patch: yes
|
||||
changes: no
|
||||
parsers:
|
||||
gcov:
|
||||
branch_detection:
|
||||
conditional: yes
|
||||
loop: yes
|
||||
method: no
|
||||
macro: no
|
||||
comment:
|
||||
layout: "header, diff"
|
||||
behavior: default
|
||||
require_changes: no
|
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]
|
||||
|
|
|
@ -3,9 +3,6 @@ module.exports = {
|
|||
plugins: [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/github",
|
||||
["@semantic-release/exec", {
|
||||
"prepareCmd": "echo '::set-env name=CAOS_NEXT_VERSION::v${nextRelease.version}'"
|
||||
}],
|
||||
"@semantic-release/github"
|
||||
]
|
||||
};
|
|
@ -5,6 +5,7 @@
|
|||
[](https://github.com/caos/oidc/blob/master/LICENSE)
|
||||
[](https://github.com/caos/oidc/releases)
|
||||
[](https://goreportcard.com/report/github.com/caos/oidc)
|
||||
[](https://codecov.io/gh/caos/oidc)
|
||||
|
||||
> This project is in alpha state. It can AND will continue breaking until version 1.0.0 is released
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue