-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed workflow to test all packages individually. (#10)
- Loading branch information
Showing
2 changed files
with
118 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
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: | ||
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 webapp | ||
|
||
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: | ||
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 | ||
run: trunk build | ||
|
||
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: | ||
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 | ||
working-directory: ./webapp | ||
run: cargo test --package webapp |