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