Skip to content

Commit

Permalink
chore: fixing coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Nov 5, 2023
1 parent bb2b56a commit f0a8d77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
if: always()
with:
name: test-coverage
path: coverage.out
path: coverage.html
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ docs: #@ Generate docs
swag init -g cmd/api/main.go
.PHONY:docs
test: fmt vet #@ Run tests
go test -v -coverprofile=coverage.out ./... && go tool cover -html=coverage.out -o coverage.html
go test -v -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
.PHONY:test
fmt: #@ Format the code
go fmt ./...
vet: fmt #@ VET the code
Expand All @@ -19,11 +21,15 @@ sync: test vet #@ Sync local data with API
update: #@ Update dependencies
go mod tidy
clear-build: #@ Clear build folder
rm -rf build && mkdir build && mkdir build/api && mkdir build/api/pkg && mkdir build/api/pkg/i18n
rm -rf build && mkdir build
mkdir build/api
mkdir build/api/pkg
mkdir build/api/pkg/i18n
copy-translations: #@ Copy translations
cp -r pkg/i18n/*.toml build/api/pkg/i18n
build: test docs vet clear-build copy-translations #@ Build the api and sync binaries
go build -o build/api/main cmd/api/main.go && go build -o build/sync/main cmd/sync/main.go
go build -o build/api/main cmd/api/main.go
go build -o build/sync/main cmd/sync/main.go
.PHONY:build
image: #@ Build docker image
docker build -t electricity-prices . --load

0 comments on commit f0a8d77

Please sign in to comment.