example: add more examples #308
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: Rust | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2023-05-06 | |
override: true | |
components: rustfmt | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Build | |
run: cargo build --verbose --all-features --all-targets | |
- name: Test | |
run: cargo test --verbose --all-features | |
- name: Check formatting | |
run: cargo fmt -- --check --verbose | |
- name: Autobahn|Testsuite | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
cargo build --verbose --release --all-features --example echo_server | |
deno run -A --unstable autobahn/server-test.js |