Rename web-server to web-server-warp #51
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: Continuous integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install trunk | |
run: | | |
wget -qO- https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -C ~/.cargo/bin -xzf- | |
- name: Build web-app-seed | |
run: | | |
cd crates/web-app-seed/ | |
rustup target add wasm32-unknown-unknown | |
trunk -V | |
trunk build | |
- name: Check code formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Check for linter warnings | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
- name: Build project | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features | |
- name: Test project | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --all-features |