diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml new file mode 100644 index 0000000..ce5ba5a --- /dev/null +++ b/.github/workflows/go-test.yaml @@ -0,0 +1,26 @@ +--- +name: Go Test +on: + pull_request: + paths-ignore: + - '.github/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + go-test: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test + run: go test ./...