Skip to content

Commit

Permalink
ci: fix simple.yml (#57)
Browse files Browse the repository at this point in the history
* ci: fix simple.yml

* ci: update codecov.yml
  • Loading branch information
wuhuizuo authored Nov 14, 2023
1 parent fbc7d93 commit fce4585
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
19 changes: 9 additions & 10 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ component_management:
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
informational: true
only_pulls: true
individual_components:
- component_id: component_dumpling # this is an identifier that should not be changed
name: dumpling # this is a display name, and can be changed freely
Expand All @@ -64,8 +66,12 @@ flag_management:
statuses:
- type: project
target: auto
informational: true
only_pulls: true
- type: patch
target: 85%
target: auto
informational: true
only_pulls: true

ignore:
- "LICENSES"
Expand All @@ -88,12 +94,5 @@ ignore:
- "session/testutil.go"
- "store/mockstore/unistore/testutil.go"

flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: true
statuses:
- type: project
target: auto
threshold: 1%
- type: patch
target: 50%


11 changes: 4 additions & 7 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.20"

go-version-file: 'go.mod'
- name: Test # only test a simple pkg.
run: go test -covermode=atomic -coverprofile=coverage.out -v ./config/... ./metrics/...
run: go test -covermode=atomic -coverprofile=coverage.out -v ./pkg/config/... ./pkg/metrics/...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit fce4585

Please sign in to comment.