diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..09c83dc --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,26 @@ +name: Go Tests + +on: + pull_request: + branches: + - master + +jobs: + build: + name: Run Go tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ^1.17 + + - name: Install dependencies + run: go mod download + + - name: Run tests + run: go test ./..