Skip to content

Commit

Permalink
Ported code
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiocaboy committed Oct 9, 2024
1 parent 8ccfef8 commit 3e5f224
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/general_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,33 @@ jobs:
- name: Generate documentation
run: cargo doc --no-deps --document-private-items

code_coverage:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc
# Install tarpaulin, a Rust coverage tool
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

# Run tarpaulin to generate coverage report
- name: Run coverage
run: cargo tarpaulin --out Xml

# Upload coverage report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./cobertura.xml # Specify the report generated by tarpaulin
fail_ci_if_error: true
verbose: true

# Display coverage in GitHub PR
- name: Coverage badge
run: |
curl -s https://codecov.io/gh/${{ github.repository }}/branch/${{ github.ref_name }}/graph/badge.svg \
-o coverage-badge.svg
# code_coverage:
# needs: build
# runs-on: ubuntu-latest
# if: github.event_name == 'push' || github.event_name == 'pull_request'
# steps:
# - uses: actions/checkout@v3
#
# - name: Install dependencies
# run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc
# # Install tarpaulin, a Rust coverage tool
# - name: Install cargo-tarpaulin
# run: cargo install cargo-tarpaulin
#
# # Run tarpaulin to generate coverage report
# - name: Run coverage
# run: cargo tarpaulin --out Xml
#
# # Upload coverage report to Codecov
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# files: ./cobertura.xml # Specify the report generated by tarpaulin
# fail_ci_if_error: true
# verbose: true
#
# # Display coverage in GitHub PR
# - name: Coverage badge
# run: |
# curl -s https://codecov.io/gh/${{ github.repository }}/branch/${{ github.ref_name }}/graph/badge.svg \
# -o coverage-badge.svg

0 comments on commit 3e5f224

Please sign in to comment.