Skip to content

Commit

Permalink
fix: improve ci logic (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Oct 28, 2022
1 parent 4a0a786 commit bae81ff
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .codecov.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
______________________________________________________________________
---

name: Bug report
about: Create a bug report to help us improve
title: "\[BUG\]"
labels: ''
assignees: ''

______________________________________________________________________
---

<!-- Here is for bug reports and feature requests ONLY!
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
______________________________________________________________________
---

name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

______________________________________________________________________
---
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
______________________________________________________________________
---

name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

______________________________________________________________________

---
<!-- Here is for bug reports and feature requests ONLY!
If you're looking for help, please check our DingTalk and Wechat room.
Expand Down
11 changes: 11 additions & 0 deletions .github/coverage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ignore:
- "example/.*"

coverage:
status:
project:
default:
# basic
target: 50%
threshold: 5%
if_ci_failed: error
7 changes: 4 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Get dependencies
run: |
go env
go get -v -t -d ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.3.0
with:
Expand All @@ -56,7 +54,6 @@ jobs:

test:
name: Test on ubuntu
needs: lint-and-build
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -98,3 +95,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
files: ./coverage.xml
name: jupiter
verbose: true

0 comments on commit bae81ff

Please sign in to comment.