diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..67d0ca9 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,23 @@ +name: Go Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.21' + - name: Install dependencies + run: go mod tidy + - name: Run tests + run: go test -v ./... +