This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
fix(deps): update github.com/spf13/pflag digest to d5e0c06 #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Linting and Test | |
# Run for all pushes to main and pull requests when Go or YAML files change | |
on: | |
push: | |
paths: | |
- go.mod | |
- go.sum | |
- '**.go' | |
- '**.yaml' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- go.mod | |
- go.sum | |
- '**.go' | |
- '**.yaml' | |
jobs: | |
golangci: | |
name: lint-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.17' | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: v1.42 | |
args: --timeout=5m | |
- name: Run go tests and generate coverage report | |
run: go test -race -coverprofile=coverage.txt -covermode=atomic -tags testtools -p 1 ./... | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt | |
flags: unittests | |
name: codecov-umbrella |