Skip to content

chore(deps): bump yew-hooks from 0.2.0 to 0.3.0 #34

chore(deps): bump yew-hooks from 0.2.0 to 0.3.0

chore(deps): bump yew-hooks from 0.2.0 to 0.3.0 #34

Workflow file for this run

name: Rust CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
# This will ensure that only one commit will be running tests at a time on each PR.
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
rust: ["stable", "beta", "nightly"]
os: [ubuntu-latest, macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: wasm32-unknown-unknown
- name: Install trunk
run: cargo install trunk
- name: Build
run: cargo +${{ matrix.rust }} build
- name: Test
run: cargo +${{ matrix.rust }} test
- name: Build chombo-gen-frontend
run: cd chombo-gen-frontend && trunk build
clippy:
runs-on: ubuntu-latest
needs: ['build']
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@beta
with:
components: clippy
- name: Run clippy
run: cargo clippy -- -Dclippy::all
rustfmt:
runs-on: ubuntu-latest
needs: ['build']
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.toml') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run fmt
run: cargo fmt --all -- --check