Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:

- name: Runing tests for coverage
run: |
go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/`
go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/` -v
env:
TIBIADATA_PROXY: ${{ secrets.TIBIADATA_PROXY }}

- name: Uploading coverage to Codecov
uses: codecov/codecov-action@v3
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ WORKDIR /go/src/
# copy go mod files
COPY go.mod go.sum ./

# copy all sourcecode
COPY src/ ./src/

# download go mods
RUN go mod download

# copy all sourcecode
COPY src/ .

# compile the program
RUN CGO_ENABLED=0 go build -ldflags="-w -s -X 'main.TibiaDataBuildBuilder=${TibiaDataBuildBuilder}' -X 'main.TibiaDataBuildRelease=${TibiaDataBuildRelease}' -X 'main.TibiaDataBuildCommit=${TibiaDataBuildCommit}'" -o app ./...
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags="-w -s -X 'main.TibiaDataBuildBuilder=${TibiaDataBuildBuilder}' -X 'main.TibiaDataBuildRelease=${TibiaDataBuildRelease}' -X 'main.TibiaDataBuildCommit=${TibiaDataBuildCommit}'" -o app ./...


# get latest alpine container
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Those are the current existing endpoints.
- GET `/v3/fansites`
- GET `/v3/guild/:name`
- GET `/v3/guilds/:world`
- GET `/v3/highscores/:world/:category/:vocation`
- GET `/v3/highscores/:world/:category/:vocation/:page`
- GET `/v3/house/:world/:house_id`
- GET `/v3/houses/:world/:town`
- GET `/v3/killstatistics/:world`
Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ go 1.19

require (
github.com/PuerkitoBio/goquery v1.8.0
github.com/TibiaData/tibiadata-api-go/src/static v0.0.0-00010101000000-000000000000
github.com/TibiaData/tibiadata-api-go/src/validation v0.0.0-00010101000000-000000000000
github.com/gin-gonic/gin v1.8.2
github.com/go-resty/resty/v2 v2.7.0
github.com/mantyr/go-charset v0.0.0-20160510214718-44d054d82c4a
github.com/stretchr/testify v1.8.1
golang.org/x/text v0.6.0
)

require github.com/TibiaData/tibiadata-api-go/src/tibiamapping v0.0.0-00010101000000-000000000000 // indirect

require (
github.com/goccy/go-json v0.10.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
Expand Down Expand Up @@ -39,3 +43,9 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/TibiaData/tibiadata-api-go/src/tibiamapping => ./src/tibiamapping

replace github.com/TibiaData/tibiadata-api-go/src/static => ./src/static

replace github.com/TibiaData/tibiadata-api-go/src/validation => ./src/validation
71 changes: 0 additions & 71 deletions src/HighscoreCategory.go

This file was deleted.

112 changes: 0 additions & 112 deletions src/HighscoreCategory_test.go

This file was deleted.

78 changes: 0 additions & 78 deletions src/HousesMapping.go

This file was deleted.

Loading