Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve ci logic #527

Merged
merged 3 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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