From e756a1a096c0153c29016c1c8f7092b18e20d62e Mon Sep 17 00:00:00 2001 From: Danny Molnar Date: Tue, 26 Mar 2024 09:39:33 +0000 Subject: [PATCH] ci: add go test workflow for CI --- .github/workflows/ci-go-tests.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci-go-tests.yml diff --git a/.github/workflows/ci-go-tests.yml b/.github/workflows/ci-go-tests.yml new file mode 100644 index 0000000..ed05dd0 --- /dev/null +++ b/.github/workflows/ci-go-tests.yml @@ -0,0 +1,23 @@ +--- +name: Go Tests on PR + +on: + pull_request: + branches: + - main + +jobs: + tests: + name: Run Go Tests + 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.22 + + - name: Run tests: + run: go test ./...