forked from braverhealth/phoenix-socket-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 870 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: ci-test
on:
pull_request:
paths:
- "lib/**"
- "test/**"
- ".github/workflows/test.yaml"
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
services:
backend:
image: braverhq/phoenix-dart-server
ports:
- 4001:4001
- 4002:4002
proxy:
image: ghcr.io/shopify/toxiproxy
ports:
- 8474:8474
- 4004:4004
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