Skip to content

update trillium-sessions #305

update trillium-sessions

update trillium-sessions #305

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
cache: "npm"
cache-dependency-path: ./app/package-lock.json
- run: npm ci
working-directory: ./app
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Collect coverage data
run: cargo llvm-cov nextest --lcov --output-path lcov.info
- name: Upload coverage data to coveralls
uses: coverallsapp/github-action@v2
with:
file: ./lcov.info
continue-on-error: true
- name: Format
run: cargo fmt --all -- --check