Skip to content

Merge pull request #6 from Gateway-DAO/feat/data-assets #12

Merge pull request #6 from Gateway-DAO/feat/data-assets

Merge pull request #6 from Gateway-DAO/feat/data-assets #12

Workflow file for this run

name: Run unit test
on:
push:
branches:
- migration
pull_request:
branches:
- migration
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2
- name: Install latest nextest release
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@ede617189e3c81af2b3a130eb76d0054785dfb5e # v2
with:
tool: cargo-llvm-cov
- name: Generate coverage report
run: |
cargo llvm-cov --no-report nextest
cargo llvm-cov --no-report --doc
cargo llvm-cov report --doctests --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}