Remove Storage getters from pallets (#907) #1273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
issue_comment: | |
types: | |
- created | |
jobs: | |
coverage: | |
runs-on: [seed-builder] | |
# Run on the PR branch that was commented, otherwise run on push to 'main' | |
if: | | |
(github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, 'check coverage')) || | |
(github.event_name == 'push' && github.event.push && github.ref == 'refs/heads/main') | |
steps: | |
- uses: xt0rted/pull-request-comment-branch@v1 | |
# this is allowed to fail on 'main' | |
continue-on-error: ${{ github.ref == 'refs/heads/main' }} | |
id: comment-branch | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ steps.comment-branch.outputs.head_ref || 'main' }} | |
- uses: dtolnay/[email protected] | |
with: | |
toolchain: stable | |
targets: wasm32-unknown-unknown | |
- name: Install tarpaulin | |
run: | | |
cargo install cargo-tarpaulin | |
# generate test coverage | |
- name: Coverage (assess) | |
run: | | |
cargo tarpaulin --avoid-cfg-tarpaulin --skip-clean --workspace --locked --out Xml | |
# upload coverage info | |
- name: Coverage (upload) | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |