diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 885e2de..316c718 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -7,12 +7,10 @@ on: branches: [ main ] jobs: - test: name: Test and coverage runs-on: ubuntu-latest steps: - - name: Check out code uses: actions/checkout@v4 @@ -28,6 +26,13 @@ jobs: go mod download go mod tidy + - name: Install golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2 + + - name: Run golangci-lint + run: golangci-lint run + - name: Run tests with coverage run: go test -v -coverprofile=coverage.txt -covermode=atomic ./... @@ -39,4 +44,4 @@ jobs: flags: unittests name: codecov-umbrella fail_ci_if_error: true - verbose: true \ No newline at end of file + verbose: true diff --git a/README.md b/README.md index 0d9f55a..e42a26c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![codecov](https://codecov.io/gh/arturogonzalezm/RealTimeBinanceMonitor/graph/badge.svg?token=I4cOxsac0y)](https://codecov.io/gh/arturogonzalezm/RealTimeBinanceMonitor) +![Go Test and Coverage](https://github.com/arturogonzalezm/myrepo/actions/workflows/workflow.yml/badge.svg) # RealTimeBinanceMonitor