blatherskite

a toy discord-like chat app backend written for a swe class
Log | Files | Refs | README

commit 16f193248098bf77c62195352ad388d3e64d7244
parent 1800ffb071b0d9b3f0f7c1f08ee678ddb0f2437c
Author: quantumish <freifeld.david@gmail.com>
Date:   Thu, 22 Sep 2022 19:13:34 -0700

Add Github Action for testing project

Diffstat:
A.github/workflows/default.yml | 18++++++++++++++++++
Mscuttlebutt/src/main.rs | 8++++----
2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml @@ -0,0 +1,17 @@ +on: [push] + +name: CI + +jobs: + scuttlebutt_test: + name: Rust project + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./scuttlebutt + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - run: cargo test +\ No newline at end of file diff --git a/scuttlebutt/src/main.rs b/scuttlebutt/src/main.rs @@ -182,10 +182,10 @@ mod tests { use super::*; use poem::test::TestClient; - fn setup() -> TestClient<Route> { - let app = OpenApiService::new(Api, "Scuttlebutt", "1.0").server("http://localhost:3000/api"); - TestClient::new(Route::new().nest("/api", app)) - } + // fn setup() -> TestClient<Route> { + // let app = OpenApiService::new(Api, "Scuttlebutt", "1.0").server("http://localhost:3000/api"); + // TestClient::new(Route::new().nest("/api", app)) + // } // #[tokio::test] // async fn sanity() {