Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Jan 24, 2024
1 parent 49342a4 commit cbe1b11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
go-version: "1.21"
- name: Enforce linting
run: |
cd backend && lint_output=$(go vet ./...)
cd ./backend/ && lint_output=$(go vet ./...)
if [[ -n "$lint_output" ]]; then
echo "$lint_output"
echo "::error::Linting issues found"
Expand All @@ -66,7 +66,7 @@ jobs:
with:
go-version: "1.21"
- name: Install Dependencies
run: cd backend && go get ./...
run: cd ./backend/ && go get ./...
- name: Increase max_connections in PostgreSQL
run: |
CONTAINER_ID=$(docker ps --filter "publish=5432" --format "{{.ID}}")
Expand All @@ -75,8 +75,8 @@ jobs:
- name: Restart PostgreSQL Container
run: docker restart $(docker ps --filter "publish=5432" --format "{{.ID}}")
- name: Migrate DB
run: cd backend/src && go run main.go --only-migrate
run: cd ./backend/src && go run main.go --only-migrate
- name: Run Tests with Coverage
run: cd backend && go test -failfast -benchmem -race -coverprofile=coverage.txt ./...
run: cd ./backend/ && go test -failfast -benchmem -race -coverprofile=coverage.txt ./...
- name: Print Coverage
run: cd backend && go tool cover -func=coverage.txt
run: cd ./backend/ && go tool cover -func=coverage.txt

0 comments on commit cbe1b11

Please sign in to comment.