You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
async-tungstenite/.github/workflows/ci.yml

108 lines
2.9 KiB

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Install dependencies
run: |
sudo apt-get install libssl-dev
- name: Check default-features
run: cargo check
- name: Check async-tls
run: cargo check --features async-tls
- name: Check async-std-runtime, async-tls
run: cargo check --features async-std-runtime,async-tls
- name: Check async-std-runtime, async-native-tls
run: cargo check --features async-std-runtime,async-native-tls
- name: Check async-std-runtime, async-tls, async-native-tls
run: cargo check --features async-std-runtime,async-tls,async-native-tls
- name: Check tokio-runtime, tokio-native-tls
run: cargo check --features tokio-runtime,tokio-native-tls
- name: Check tokio-runtime, tokio-rustls
run: cargo check --features tokio-runtime,tokio-rustls
- name: Check tokio-runtime, tokio-openssl
run: cargo check --features tokio-runtime,tokio-openssl
- name: Check tokio-runtime, async-tls, tokio-native-tls
run: cargo check --features tokio-runtime,async-tls,tokio-native-tls
- name: Check gio-runtime
run: cargo check --features gio-runtime
- name: Check gio-runtime, async-tls
run: cargo check --features gio-runtime,async-tls
- name: Check all features
run: cargo check --all-features
- name: Test async-std-runtime
run: cargo test --features async-std-runtime
autobahn:
name: Autobahn tests
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Install dependencies
run: |
sudo apt-get install libssl-dev python-unittest2
sudo pip install urllib3[secure] autobahntestsuite
- name: Build Autobahn TestSuite for client
run: cargo build --release --features async-std-runtime --example autobahn-client
- name: Build Autobahn TestSuite for server
run: cargo build --release --features async-std-runtime --example autobahn-server
- name: Running Autobahn TestSuite for client
run: ./scripts/autobahn-client.sh
- name: Running Autobahn TestSuite for server
run: ./scripts/autobahn-server.sh