Skip to content

Commit

Permalink
chore: setup code coverage test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsaw373 committed Apr 14, 2023
1 parent 2b6ed4c commit f936749
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test and Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Test
runs-on:
- ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20.3'
- name: Run test
run: make test
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f936749

Please sign in to comment.