From 667ea359effbf13a0f046b6e3d83d732ff9dc2ee Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Fri, 19 Aug 2022 20:50:01 +0200 Subject: [PATCH] ci: Add build and test workflow --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..493b255 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +--- +name: Test + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + go: [1.18, 1.19] + + steps: + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} + + - uses: actions/checkout@v3 + + - name: Get dependencies + run: | + go get -v -t -d ./... + + - name: Build + run: go build + + - name: Test + run: go test -v ./...