diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3cd2885 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +on: push +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.x.x] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + name: Go ${{ matrix.go-version }} (${{ matrix.platform }}) + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Test + run: go test -race ./...