Update username. #38
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
on: [push, pull_request] | |
name: Web App | |
jobs: | |
all: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install: Rust" | |
id: toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
target: wasm32-unknown-unknown | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt, clippy | |
default: true | |
- name: "Install: Trunk" | |
run: wget -qO- https://github.com/thedodd/trunk/releases/download/v0.20.2/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf- | |
- name: "Cache: Yarn" | |
uses: actions/setup-node@v2 | |
with: | |
cache: 'yarn' | |
- name: "Cache: Cargo" | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: "Yarn: install" | |
run: yarn install | |
- name: "Trunk: build" | |
run: ./trunk build | |
- name: "Rust: test" | |
run: cargo test --features trace | |
- name: "Rust: clippy" | |
run: cargo clippy | |
- name: "Rust: rustfmt check" | |
run: cargo fmt --all -- --check |