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: codecov token #25

Merged
merged 2 commits into from
Jun 5, 2024
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
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
Loading