From b40f7592a63834ba808a05131d9294c1ddecbfec Mon Sep 17 00:00:00 2001 From: Renato Duarte Date: Fri, 12 Feb 2021 17:14:58 +0000 Subject: [PATCH] Create action for CI on pull request --- .github/workflows/pull_request.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..f560434 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -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