-
-
Notifications
You must be signed in to change notification settings - Fork 42
65 lines (57 loc) · 2.12 KB
/
ci.yaml
File metadata and controls
65 lines (57 loc) · 2.12 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on: [push, pull_request]
jobs:
build:
# Prevent duplicate builds on internal PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
strategy:
matrix:
# Test compatible SDK and protobuf version combinations
# protobuf 3.1.0: SDK >= 2.19
# protobuf 4.0.0: SDK >= 3.3
# protobuf 4.1.0: SDK >= 3.6
# protobuf 4.2.0+: SDK >= 3.7
# protobuf 5.0.0+: SDK >= 3.7
include:
# Test older protobuf versions with SDK 3.4
- sdk: "3.4"
protobuf: "3.1.0"
- sdk: "3.4"
protobuf: "4.0.0"
# Test latest protobuf versions with SDK 3.7+ (stable and beta)
- sdk: stable
protobuf: "3.1.0"
- sdk: stable
protobuf: "4.0.0"
- sdk: stable
protobuf: "4.2.0"
- sdk: stable
protobuf: "5.0.0"
- sdk: stable
protobuf: "6.0.0"
- sdk: beta
protobuf: "3.1.0"
- sdk: beta
protobuf: "4.0.0"
- sdk: beta
protobuf: "4.2.0"
- sdk: beta
protobuf: "5.0.0"
- sdk: beta
protobuf: "6.0.0"
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Override protobuf version
run: dart pub add protobuf:${{ matrix.protobuf }}
- name: Install coveralls
run: sudo gem install coveralls-lcov
- name: Start Centrifugo
run: docker run -d -p 8000:8000 -e CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_DELTA_PUBLISH=true -e CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_ALLOWED_DELTA_TYPES="fossil" -e CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_SIZE="100" -e CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_HISTORY_TTL="300s" -e CENTRIFUGO_CHANNEL_WITHOUT_NAMESPACE_FORCE_RECOVERY="true" centrifugo/centrifugo:v6 centrifugo --client.insecure
- name: Run tests
run: bash tool/test.sh