From b89d9ed327fe7689edd72bfec815d754a724b850 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Dec 2020 22:59:04 +0100 Subject: Add GitHub Actions `go test` CI workflow Set up CI to run tests. --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..cb9f3cc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + go: ['1.15', '1.14'] + + name: Test ${{ matrix.os }}-go${{ matrix.go }} + + steps: + - uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + + - run: go test -v ./... -- cgit v1.2.3