Skip to content

Commit

Permalink
chore: update lint and add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
maier committed Dec 6, 2023
1 parent 3483d71 commit 04e2003
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test and coverage

on:
pull_request:
branches: ['v3']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run coverage
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
if: success() || failure()
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./coverage.out
move_coverage_to_trash: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- v*
branches:
- master
- v3
pull_request:
jobs:
golangci:
Expand All @@ -15,5 +15,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.38
version: latest
args: --timeout=5m

0 comments on commit 04e2003

Please sign in to comment.