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 599021f commit cedc4c7
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/coverage-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cedc4c7

Please sign in to comment.