From 76fdd41a8f1d3accdf21a9a21e79ce67d834040b Mon Sep 17 00:00:00 2001 From: Justin Johnson Date: Fri, 25 Mar 2022 17:12:59 -0500 Subject: [PATCH] chore: Set up GitHub CI workflow --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b27a733 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +on: [push, pull_request] +name: Go Test + +jobs: + unit: + strategy: + fail-fast: false + matrix: + os: [ "ubuntu" ] + go: [ "1.17.x", "1.18.x" ] + env: + COVERAGES: "" + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os}} (go ${{ matrix.go }}) + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - name: Go information + run: | + go version + go env + - name: Run tests + run: go test -v ./...