From d935bc3f41d5ea2465787306c82d63b61bb03522 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Mon, 26 Feb 2024 23:11:47 +0100 Subject: [PATCH] [GHA] Add go-test workflow. --- .github/workflows/go-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/go-test.yml 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