Skip to content

Merge branch 'Caellian-main' #136

Merge branch 'Caellian-main'

Merge branch 'Caellian-main' #136

Workflow file for this run

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)