Skip to content

Commit

Permalink
Update and rename go.yml to coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kerelape committed Oct 7, 2023
1 parent 90ee20d commit b096b8d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 33 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code-coverage:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Test profile
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload profile
uses: codecov/codecov-action@v3

33 changes: 0 additions & 33 deletions .github/workflows/go.yml

This file was deleted.

0 comments on commit b096b8d

Please sign in to comment.