Skip to content

Commit

Permalink
chore: use coveralls instead of codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Semior001 committed Mar 10, 2024
1 parent 39bfc2f commit 98e6feb
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/.go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
- name: set up go 1.22.0
uses: actions/setup-go@v4
id: go
with:
go-version: 1.22.0
with: { go-version: 1.22.0 }

- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
with: { fetch-depth: 0 }

- name: build and test
run: |
Expand All @@ -31,6 +29,13 @@ jobs:
TZ: "Asia/Almaty"
CGO_ENABLED: 0

- name: install goveralls
run: GO111MODULE=off go get -u -v github.com/mattn/goveralls

- name: submit coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env: { COVERALLS_TOKEN: ${ { secrets.GITHUB_TOKEN } } }

- name: run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -41,16 +46,6 @@ jobs:
skip-pkg-cache: true
skip-build-cache: true

- name: submit coverage to codecov
run: |
cat $GITHUB_WORKSPACE/profile.cov > $GITHUB_WORKSPACE/coverage.txt
cd $GITHUB_WORKSPACE
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GOFLAGS: "-mod=mod"
CGO_ENABLED: 0

- name: set up QEMU
uses: docker/setup-qemu-action@v1

Expand Down

0 comments on commit 98e6feb

Please sign in to comment.