From cbe1b11f3212c2b101a9032b5c9d71e977ab71a7 Mon Sep 17 00:00:00 2001 From: Garrett Ladley <92384606+garrettladley@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:34:52 -0500 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 924a0768f..4b80ae12e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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" @@ -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}}") @@ -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