Skip to content

Commit

Permalink
Use Github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoger committed May 6, 2023
1 parent 98faea1 commit 9770a78
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will test this project.
name: Github Action CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
name: Go Test
strategy:
matrix:
go-version: ["1.13", "1.19", "1.20"]
runs-on: ubuntu-latest
steps:
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Code
uses: actions/checkout@v3
- name: Run Unit Test Cases
run: go test -v -coverprofile=coverage.out -covermode=count ./...
- name: Upload Coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out

0 comments on commit 9770a78

Please sign in to comment.