Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Codecov
on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
jobs:
  coverage:
    name: coverage
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: main
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
        with:
          path: main
      - name: Set up Go
        uses: actions/setup-go@v4
        with:
          go-version-file: "main/go.mod"
          check-latest: true
          cache: true
          cache-dependency-path: "main/go.sum"
      - name: Run coverage
        run: make test-coverage
      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v3
        with:
          working-directory: main
name: Codecov

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
defaults:
run:
working-directory: main
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: main
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "main/go.mod"
check-latest: true
cache: true
cache-dependency-path: "main/go.sum"
- name: Run coverage
run: make test-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
working-directory: main
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test-coverage:
@go test -race -covermode=atomic -coverprofile=coverage.out ./...