Skip to content

Commit

Permalink
Update coverage-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima Ketan Chauhan authored and GitHub Enterprise committed Apr 2, 2025
1 parent 7eaf876 commit 599021f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/coverage-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
uses: docker/setup-buildx-action@v2 # Set up Docker buildx to build Docker images

- name: Build Docker image for tests
run: docker build -f backend/tests/Dockerfile.test -t test-image .
run: docker build -f Dockerfile.test -t test-image .
working-directory: backend/tests # Set the working directory to backend/tests

- 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

- 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

0 comments on commit 599021f

Please sign in to comment.