diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..25d168b --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,26 @@ +name: go-test +on: + push: + branches: + - master + - main + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Go Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache: false + - name: Get dependencies + run: go mod download + - name: Run tests + run: go test ./... -v