diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c9c6652 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Go Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + id: go + + - name: Check out code + uses: actions/checkout@v3 + + - name: Get dependencies + run: go mod download + + - name: Run tests + run: go test ./...