From c1f8c373ec034f741a56a1cc860703ff27a8229e Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Mon, 12 Jun 2023 13:53:36 +0800 Subject: [PATCH] run tests in github actions --- .github/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/tests.yml diff --git a/.github/tests.yml b/.github/tests.yml new file mode 100644 index 0000000..b62c1f0 --- /dev/null +++ b/.github/tests.yml @@ -0,0 +1,16 @@ +# https://github.com/mvdan/github-actions-golang +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.19.x, 1.20.x] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - run: go test ./...