diff --git a/.github/workflows/coverage-workflow.yml b/.github/workflows/coverage-workflow.yml index 21b8bd0..e4a2773 100644 --- a/.github/workflows/coverage-workflow.yml +++ b/.github/workflows/coverage-workflow.yml @@ -19,16 +19,23 @@ jobs: - name: Set up Docker uses: docker/setup-buildx-action@v2 # Set up Docker buildx to build Docker images - - name: Build Docker image for tests - run: docker build -f Dockerfile.test -t test-image . - working-directory: backend/tests # Set the working directory to backend/tests + - name: Debug current directory and files + run: | + pwd + ls -alh + working-directory: backend/tests # Check the directory and files in backend/tests + - name: Build Docker image for tests + run: | + cd backend/tests + docker build -f Dockerfile.test -t test-image . + - name: Run tests with coverage - run: docker run --rm test-image # Run the Docker container to execute the tests with coverage - working-directory: backend/tests # Set the working directory to backend/tests - + run: | + cd backend/tests + docker run --rm test-image + - name: Upload coverage report uses: codecov/codecov-action@v3 # Upload coverage report to Codecov with: - file: coverage.xml # Specify the coverage file path - working-directory: backend/tests # Set the working directory to backend/tests + file: backend/tests/coverage.xml # Specify the coverage file path