Skip to content

Commit

Permalink
fix: install dependencies properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian committed Aug 15, 2023
1 parent 9c71152 commit 779e65c
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 139 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,24 @@ jobs:
ls -al ${GOPATH}
- name: Install dependencies
run: go get .
run: |
go get ./...
go mod tidy
env:
GOPATH: /home/runner/work/url-shortener/url-shortener/src
GOPATH: /home/runner/work/url-shortener/url-shortener/internal

- name: Test
run: go test -v ./...
env:
GOPATH: /home/runner/work/url-shortener/url-shortener/src
GOPATH: /home/runner/work/url-shortener/url-shortener/internal

- name: Build
run: |
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/app-amd64.exe ./cmd/api/main.go
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/app-amd64-linux ./cmd/api/main.go
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ./bin/app-amd64-darwin ./cmd/api/main.go
env:
GOPATH: /home/runner/work/url-shortener/url-shortener/src
GOPATH: /home/runner/work/url-shortener/url-shortener/internal

- name: Archive production artifacts
uses: actions/upload-artifact@v3
Expand Down
74 changes: 42 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,67 @@ module github.com/dorianneto/url-shortener
go 1.20

require (
cloud.google.com/go/firestore v1.9.0
github.com/couchbase/gocb/v2 v2.6.1
github.com/gin-gonic/gin v1.8.2
github.com/go-playground/validator/v10 v10.11.2
github.com/hibiken/asynq v0.24.0
cloud.google.com/go/firestore v1.12.0
github.com/couchbase/gocb/v2 v2.6.3
github.com/gin-gonic/gin v1.9.1
github.com/go-playground/validator/v10 v10.15.0
github.com/hibiken/asynq v0.24.1
github.com/joho/godotenv v1.5.1
github.com/satori/go.uuid v1.2.0
)

require (
cloud.google.com/go v0.105.0 // indirect
cloud.google.com/go/compute v1.12.1 // indirect
cloud.google.com/go/compute/metadata v0.2.1 // indirect
cloud.google.com/go/longrunning v0.3.0 // indirect
cloud.google.com/go v0.110.7 // indirect
cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/longrunning v0.5.1 // indirect
github.com/bytedance/sonic v1.10.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/couchbase/gocbcore/v10 v10.2.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/couchbase/gocbcore/v10 v10.2.6 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-redis/redis/v8 v8.11.5 // indirect
github.com/goccy/go-json v0.10.0 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/s2a-go v0.1.5 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/redis/go-redis/v9 v9.0.5 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/ugorji/go/codec v1.2.8 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/arch v0.4.0 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.103.0 // indirect
google.golang.org/api v0.137.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 // indirect
google.golang.org/grpc v1.50.1 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
google.golang.org/genproto v0.0.0-20230814215434-ca7cfce7776a // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230814215434-ca7cfce7776a // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230814215434-ca7cfce7776a // indirect
google.golang.org/grpc v1.57.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 779e65c

Please sign in to comment.