Merge branch 'Caellian-main' #136
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: Codecov | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
Codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust (rustup) | |
working-directory: ./sim | |
run: rustup update stable && rustup default stable | |
- name: Generate Cargo.lock | |
working-directory: ./sim | |
run: cargo generate-lockfile | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
./sim/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('./sim/Cargo.lock') }} | |
- name: Build (wasm-pack) | |
working-directory: ./sim | |
run: | | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
wasm-pack build | |
- name: Push Coverage Data (codecov) | |
working-directory: ./sim | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: | | |
cargo install cargo-tarpaulin && | |
cargo tarpaulin --all-features --out xml && | |
bash <(curl -s https://codecov.io/bash) |