Skip to content

Commit

Permalink
Add CODECOV_TOKEN (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatthm authored Feb 26, 2024
1 parent c240dd9 commit ba8d804
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ jobs:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master

- name: Setup Environment
run: |
make "$GITHUB_ENV"
- name: Install Go
uses: nhatthm/gh-actions/setup-go@master
with:
go-version: ${{ matrix.go-version }}

- name: Setup Environment
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
make "$GITHUB_ENV"
- name: Install Dependencies
shell: bash
env:
Expand All @@ -72,12 +76,14 @@ jobs:
if: matrix.go-version == env.GO_LATEST_VERSION
uses: nhatthm/gh-actions/codecov@master
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./unit.coverprofile
flags: unittests-${{ runner.os }}

#- name: Upload code coverage (features)
# if: matrix.go-version == env.GO_LATEST_VERSION
# uses: nhatthm/gh-actions/codecov@master
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./features.coverprofile
# flags: featurestests-${{ runner.os }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PYTHON_VERSION ?= 3.11
GOLANGCI_LINT_VERSION ?= v1.55.2

GO ?= go
GOLANGCI_LINT ?= $(shell go env GOPATH)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
GOLANGCI_LINT ?= $(shell go env GOPATH || true)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)

.PHONY: $(VENDOR_DIR)
$(VENDOR_DIR):
Expand Down

0 comments on commit ba8d804

Please sign in to comment.