From 39dad95f2d8748ed570e299cdd78a1947e6090f5 Mon Sep 17 00:00:00 2001 From: Andrei Markin Date: Mon, 22 Sep 2025 13:20:17 +0400 Subject: [PATCH] ci: run tests on PRs and pushing to main --- .github/workflows/test.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..833a1d1 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,26 @@ +name: Go test +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v5 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test + run: go test ./... + +