Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuthaDev committed Dec 24, 2024
1 parent e8b3eb2 commit 3e7d572
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/cypress-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,10 @@ jobs:
env:
RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch"
LLVM_PROFILE_FILE: "${{ github.workspace }}/coverage.profraw"
run: just build_v2 --jobs 3
run: |
just build_v2
ls -lh coverage.profraw
rm -f **/*.profraw
- name: Setup Local Server
if: ${{ env.RUN_TESTS == 'true' }}
Expand Down Expand Up @@ -431,7 +434,12 @@ jobs:
run: |
scripts/execute_cypress_v2.sh
kill "${{ env.PID }}"
kill -2 "${{ env.PID }}"
- name: File size check
if: ${{ env.RUN_TESTS == 'true' }}
run: |
ls -lh coverage.profraw
- name: Upload Cypress test results
if: env.RUN_TESTS == 'true' && failure()
Expand All @@ -445,11 +453,15 @@ jobs:
- name: Process coverage report
if: env.RUN_TESTS == 'true'
# Explore using llvm-cov in future for better integration with codecov
run: grcov . --source-dir . --output-type lcov --output-path ${{ env.CODECOV_FILE }} --branch --binary-path ./target/debug --ignore "*cargo*" --ignore "target/*" --ignore "/*"
run: |
grcov . --source-dir . --output-type lcov --output-path lcov.info --branch --binary-path ./target/debug --ignore "*cargo*" --ignore "target/*" --ignore "/*"
ls -lh lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: env.RUN_TESTS == 'true'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ env.CODECOV_FILE }}
disable_search: true

0 comments on commit 3e7d572

Please sign in to comment.