From 9d0bc4f0de1b19f08629fc47c4b9eef04da1b13f Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Wed, 24 Jan 2024 17:43:53 -0700 Subject: [PATCH] Create ci.yml Add CI testing workflow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2be94ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.20.x, 1.21.x] + os: [ubuntu-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + check-latest: true + cache: false + + - uses: actions/checkout@v3 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...