From f60b6126c49f543419511b8662c608256d12336f Mon Sep 17 00:00:00 2001 From: Piotr Date: Tue, 10 Dec 2024 16:00:20 +0100 Subject: [PATCH] github actions run tests --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ go.mod | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..36cdbe0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Go Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23.2' + + - name: Install dependencies + run: go mod download + + - name: Run tests + run: go test -v ./... diff --git a/go.mod b/go.mod index a45cf1c..80ff227 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/logdyhq/logdy-core -go 1.21.4 +go 1.23.2 require ( github.com/gorilla/websocket v1.5.1