Skip to content

Commit

Permalink
Create action for CI on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
rntdrts committed Feb 12, 2021
1 parent 223a865 commit b40f759
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: pull_request

jobs:
test:
strategy:
matrix:
go-version: [1.13, 1.14, 1.15]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- run: go get -t ./...

- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage to codecov
uses: codecov/codecov-action@v1

0 comments on commit b40f759

Please sign in to comment.