Skip to content

Await for a successful connection to the websocket before listening to messages #74

Await for a successful connection to the websocket before listening to messages

Await for a successful connection to the websocket before listening to messages #74

Workflow file for this run

name: ci-test
on:
pull_request:
paths:
- "lib/**"
- "test/**"
- ".github/workflows/test.yaml"
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
services:
phoenix:
image: braverhq/phoenix-dart-server
ports:
- 4001:4001
- 4002:4002
steps:
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
architecture: x64
sdk: "3.1.2"
- name: Fetch sources
uses: actions/checkout@v2
- name: Fetch dependencies
run: dart pub get
- name: Run analysis
run: |
dart analyze --fatal-infos lib/
dart analyze test/
- name: Run tests
run: dart run test