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