Move webapp, and setup the htmx backend for the csr client to interac… #7
Workflow file for this run
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: pr_check | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
clippy-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Clippy for API | |
run: cargo clippy --package api | |
clippy-webapp-yew: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Clippy for Webapp | |
run: cargo clippy --package yew_csr | |
clippy-webapp-axum: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Clippy for Webapp | |
run: cargo clippy --package axum_htmx | |
build-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Build API | |
run: cargo build --package api | |
build-webapp-yew: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
target: wasm32-unknown-unknown | |
toolchain: stable | |
- name: Install trunk from crates.io | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: trunk | |
- name: Install wasm-bindgen-cli from crates.io | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: wasm-bindgen-cli | |
- name: Build Webapp | |
working-directory: ./webapp/yew_csr | |
run: trunk build | |
build-webapp-axum: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Build Webapp | |
run: cargo build --package axum_htmx | |
test-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Test API | |
run: cargo test --package api | |
test-webapp-yew: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Install trunk from crates.io | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: trunk | |
- name: Install wasm-bindgen-cli from crates.io | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: wasm-bindgen-cli | |
- name: Test Webapp | |
run: cargo test --package yew_csr | |
test-webapp-axum: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Test Webapp | |
run: cargo test --package axum_htmx |