Skip to content

Commit

Permalink
chore(*): use github actions (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
philchia authored Jul 4, 2023
1 parent 5165c16 commit 7fdc4d1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .circleci/config.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Go Coverage"
on:
pull_request:
branches:
# It's important that the action also runs on merge to main
- v4
jobs:
coverage:
name: Update coverage badge
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '1.16'

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Test
run: |
go test -v ./... -coverprofile=coverage.out
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out

0 comments on commit 7fdc4d1

Please sign in to comment.