Skip to content

Commit

Permalink
Merge pull request #513 from duckling69/patch-1
Browse files Browse the repository at this point in the history
Codecov added
  • Loading branch information
Aisuko authored Jun 22, 2023
2 parents 4f95c53 + 6266081 commit 9b72599
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 3m --verbose
codecov:
name: Code Coverage
if: github.repository == 'meshery/meshery-linkerd'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
- name: Run unit tests
run: go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
if: github.repository == 'meshery/meshery-linkerd'
uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
flags: unittests
error_code_check:
name: Error code utility check
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -133,4 +152,4 @@ jobs:
echo "current-context:" ${CURRENTCONTEXT}
export KUBECONFIG="${HOME}/.kube/config"
echo "environment-kubeconfig:" ${KUBECONFIG}
GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go test -v ./...
GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go test -v ./...

0 comments on commit 9b72599

Please sign in to comment.