Skip to content

Commit

Permalink
Limit SSE test events to 10 and enable release tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-bourne committed Oct 20, 2023
1 parent e1ec551 commit bf13661
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ jobs:
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
release-tests-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- run: cargo install wasm-pack --locked --version 0.12.1
- run: cargo test --benches --tests --release
tests-macos-latest:
runs-on: macos-latest
steps:
Expand All @@ -39,6 +52,19 @@ jobs:
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
release-tests-macos-latest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- run: cargo install wasm-pack --locked --version 0.12.1
- run: cargo test --benches --tests --release
tests-windows-latest:
runs-on: windows-latest
steps:
Expand All @@ -57,6 +83,19 @@ jobs:
- run: cargo test
- run: cargo build --all-targets
- run: cargo doc
release-tests-windows-latest:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ructions/toolchain@v2
with:
toolchain: 1.73
profile: minimal
default: true
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- run: cargo install wasm-pack --locked --version 0.12.1
- run: cargo test --benches --tests --release
lints-ubuntu-latest:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion packages/test/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn try_multiply(args: TryMultiply) -> Result<i32, ()> {
}

fn sse_stream() -> impl Stream<Item = Result<Counter, Infallible>> {
stream::iter((0..).map(|i| Ok(Counter(i))))
stream::iter((0..10).map(|i| Ok(Counter(i))))
}

fn counter(_updates: BoxStream<'static, ()>, args: Counter) -> ((), impl Stream<Item = i32>) {
Expand Down
9 changes: 9 additions & 0 deletions packages/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ fn ci() -> CI {
.step(install("wasm-pack", "0.12.1"))
.tests(),
);
workflow.add_job(
Tasks::new(
"release-tests",
platform,
rust_toolchain("1.73").minimal().default().wasm(),
)
.step(install("wasm-pack", "0.12.1"))
.release_tests(),
);
}

workflow.standard_lints("nightly-2023-10-14", "0.1.43")
Expand Down

0 comments on commit bf13661

Please sign in to comment.