Skip to content

Commit

Permalink
Updated test.yaml for solving workflow error (#98)
Browse files Browse the repository at this point in the history
* Updated test.yaml for solving workflow error

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* Updated 'run cargo-tarpaulin' test

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* Updated test

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* Added coverage.yaml file and secured test.yaml

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* Updates to coverage.yml

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* Removed upload of coverage to codecov

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

* updates on codecov

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>

---------

Signed-off-by: neoz666 <neoz.blockchain@gmail.com>
  • Loading branch information
NeoZ666 authored Jan 29, 2025
1 parent 52f1641 commit b818448
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- main
pull_request:

name: coverage

jobs:
check:
name: Rust project
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
# with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
# fail_ci_if_error: true
12 changes: 0 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,3 @@ jobs:
with:
toolchain: stable
override: true

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.15.0'

# Upload coverage report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ${{ steps.coverage.outputs.report }}
directory: ./coverage/reports/

0 comments on commit b818448

Please sign in to comment.