diff --git a/.github/workflows/test-if-builds.yaml b/.github/workflows/test-if-builds.yaml new file mode 100644 index 0000000..bdad160 --- /dev/null +++ b/.github/workflows/test-if-builds.yaml @@ -0,0 +1,25 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Build + run: go build -v ./cmd/api/main.go \ No newline at end of file diff --git a/go.mod b/go.mod index 0fc8671..04a1612 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/go-chi/chi/v5 v5.1.0 github.com/hashicorp/hcl/v2 v2.22.0 github.com/segmentio/ksuid v1.0.4 + github.com/sqids/sqids-go v0.4.1 go.mongodb.org/mongo-driver v1.17.1 ) @@ -18,7 +19,6 @@ require ( github.com/klauspost/compress v1.13.6 // indirect github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect github.com/montanaflynn/stats v0.7.1 // indirect - github.com/sqids/sqids-go v0.4.1 // indirect github.com/xdg-go/pbkdf2 v1.0.0 // indirect github.com/xdg-go/scram v1.1.2 // indirect github.com/xdg-go/stringprep v1.0.4 // indirect