Factor out media device query and selection #228
Workflow file for this run
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
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | |
on: [pull_request] | |
name: cargo test | |
env: | |
ACTIX_PORT: 8080 | |
UI_ENDPOINT: localhost:80 | |
OAUTH_CLIENT_ID: blah | |
OAUTH_AUTH_URL: blah | |
OAUTH_TOKEN_URL: blah | |
OAUTH_CLIENT_SECRET: blah | |
OAUTH_REDIRECT_URL: http://localhost:8080/login/callback | |
RUST_LOG: info | |
DATABASE_URL: postgres://postgres:docker@postgres:5432/actix-api-db?sslmode=disable | |
ACTIX_UI_BACKEND_URL: yeet | |
LOGIN_URL: yeet | |
WEBTRANSPORT_HOST: yeet | |
ENABLE_OAUTH: false | |
WEBTRANSPORT_ENABLED: true | |
jobs: | |
test-api: | |
name: API Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
working-directory: ./actix-api | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
continue-on-error: false # WARNING: only for this example, remove it! | |
with: | |
command: test | |
args: --manifest-path ./actix-api/Cargo.toml | |
test-ui: | |
name: UI Test Suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
working-directory: ./yew-ui | |
- name: Install nightly toolchain and wasm32-unknown-unknown | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: wasm32-unknown-unknown | |
toolchain: nightly-2022-10-21 | |
override: true | |
- name: Install wasm-bindgen-cli | |
uses: jetli/wasm-bindgen-action@v0.2.0 | |
with: | |
version: 'latest' | |
- name: Run cargo test | |
run: | | |
cd yew-ui | |
cargo test |