From 30121c9505ba932189052a609290ed164b39b828 Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Tue, 22 Jun 2021 12:09:27 +0530 Subject: [PATCH] chore: add github workflow --- .github/workflows/go-test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..d823726 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,27 @@ +name: Run Tests + +# Triggers the workflow on push or pull request events +on: [push, pull_request] + +jobs: + test: + strategy: + matrix: + go: ["1.13", "1.14", "1.15", "1.16"] + + runs-on: ubuntu-20.04 + + name: Go ${{ matrix.go }} Tests + steps: + - uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + + - name: Run Test + run: go test -v ./... + + - name: Run Coverage + run: go test -v -cover ./...