Skip to content

Commit

Permalink
fix: codecov token (#25)
Browse files Browse the repository at this point in the history
* fix: lint check

* ci: add codecov token
  • Loading branch information
Gogomoe authored Jun 5, 2024
1 parent 3526f07 commit 8f1d2ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- name: unit-test
run: |
make test
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
name: Upload the codecov
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
token: ${{ secrets.CODECOV_TOKEN }} # required
files: ./cover.out
flags: unittests # optional
name: codecov-umbrella # optional
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ YELLOW := $(shell tput -Txterm setaf 3)
WHITE := $(shell tput -Txterm setaf 7)
RESET := $(shell tput -Txterm sgr0)

PROJECT_DIR=$(shell pwd)

.PHONY: help build fmt lint test release-tag release-push

## Show help
Expand Down Expand Up @@ -38,9 +40,12 @@ fmt:
@go fmt .

## Lint with golangci-lint
lint:
lint: golangci-lint
@echo Linting
@golangci-lint run --no-config --issues-exit-code=0 --timeout=5m
@$(PROJECT_DIR)/bin/golangci-lint run --config $(PROJECT_DIR)/.golangci.yaml

golangci-lint:
GOBIN=$(PROJECT_DIR)/bin go install github.com/golangci/golangci-lint/cmd/[email protected]

## Format docs
docs:
Expand Down

0 comments on commit 8f1d2ab

Please sign in to comment.