-
Notifications
You must be signed in to change notification settings - Fork 7
158 lines (156 loc) · 6.18 KB
/
flaky.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
on:
schedule:
- cron: '0 0 * * *'
name: Flaky
jobs:
test_api:
name: Test misskey-api and misskey-util
runs-on: ubuntu-20.04
timeout-minutes: 20
strategy:
matrix:
include:
- image: 'misskey/misskey:12.75.0'
flags: --features 12-75-0
- image: 'misskey/misskey:12.71.0'
flags: --features 12-71-0
- image: 'misskey/misskey:12.70.0'
flags: --features 12-70-0
- image: 'misskey/misskey:12.69.0'
flags: --features 12-69-0
- image: 'misskey/misskey:12.68.0'
flags: --features 12-67-0
- image: 'misskey/misskey:12.66.0'
flags: --features 12-66-0
- image: 'misskey/misskey:12.65.4'
flags: --features 12-65-4
- image: 'misskey/misskey@sha256:9c13b1d240cef6f96aa19d133f0ddc5a927d7b8206b8656b940f3dc645ca0dbe'
flags: --features 12-63-0
- image: 'misskey/misskey:12.62.2'
flags: --features 12-62-2
- image: 'misskey/misskey:12.62.0'
flags: --features 12-62-0
- image: 'misskey/misskey:12.61.0'
flags: --features 12-61-0
- image: 'misskey/misskey:12.60.0'
flags: --features 12-60-0
- image: 'misskey/misskey:12.58.0'
flags: --features 12-58-0
- image: 'misskey/misskey:12.57.1'
flags: --features 12-57-0
- image: 'misskey/misskey:12.55.0'
flags: --features 12-55-0
- image: 'misskey/misskey:12.51.0'
flags: --features 12-51-0
- image: 'misskey/misskey:12.49.0'
flags: --features 12-49-0
- image: 'misskey/misskey:12.48.0'
flags: --features 12-48-0
- image: 'misskey/misskey:12.47.1'
flags: --features 12-47-0
- image: 'misskey/misskey:12.42.0'
flags: --features 12-42-0
- image: 'misskey/misskey:12.39.0'
flags: --features 12-39-0
- image: 'misskey/misskey:12.37.0'
flags: --features 12-37-0
- image: 'misskey/misskey:12.31.0'
flags: --features 12-31-0
- image: 'misskey/misskey:12.29.0'
flags: --features 12-29-0
- image: 'misskey/misskey:12.28.0'
flags: --features 12-27-0
- image: 'misskey/misskey:12.20.0'
flags: --features 12-19-0
- image: 'misskey/misskey:12.13.0'
flags: --features 12-13-0
- image: 'misskey/misskey:12.10.0'
flags: --features 12-10-0
- image: 'misskey/misskey:12.9.0'
flags: --features 12-9-0
- image: 'misskey/misskey:12.8.0'
flags: --features 12-8-0
- image: 'misskey/misskey:12.5.0'
flags: --features 12-5-0
- image: 'misskey/misskey:12.0.0'
flags: ''
steps:
- uses: actions/checkout@v3
- run: cp ci/Cargo.lock ci/rust-toolchain.toml .
- uses: Swatinem/rust-cache@v2
- name: Build misskey-api
run: cargo build --tests --locked --manifest-path misskey-api/Cargo.toml ${{ matrix.flags }}
- name: Build misskey-util
run: cargo build --tests --locked --manifest-path misskey-util/Cargo.toml ${{ matrix.flags }}
- id: setup_env
run: ./ci/testenv/setup.sh
env:
MISSKEY_IMAGE: ${{ matrix.image }}
MISSKEY_ID: aid
- name: Test misskey-api
run: cargo test --manifest-path misskey-api/Cargo.toml ${{ matrix.flags }}
timeout-minutes: 5
env:
TEST_API_URL: http://localhost:3000/api/
TEST_WEBSOCKET_URL: ws://localhost:3000/streaming
TEST_ADMIN_TOKEN: ${{ steps.setup_env.outputs.admin_token }}
TEST_USER_TOKEN: ${{ steps.setup_env.outputs.user_token }}
- name: Test misskey-util
run: cargo test --manifest-path misskey-util/Cargo.toml ${{ matrix.flags }}
timeout-minutes: 5
env:
TEST_API_URL: http://localhost:3000/api/
TEST_WEBSOCKET_URL: ws://localhost:3000/streaming
TEST_ADMIN_TOKEN: ${{ steps.setup_env.outputs.admin_token }}
TEST_USER_TOKEN: ${{ steps.setup_env.outputs.user_token }}
test_id:
name: Test misskey-api with different ID generation methods
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
include:
- method: meid
- method: objectid
- method: ulid
steps:
- uses: actions/checkout@v3
- run: cp ci/Cargo.lock ci/rust-toolchain.toml .
- uses: Swatinem/rust-cache@v2
- run: cargo build --tests --locked --manifest-path misskey-api/Cargo.toml --no-default-features --features "12-47-0 ${{ matrix.method }}"
- id: setup_env
run: ./ci/testenv/setup.sh
env:
MISSKEY_IMAGE: 'misskey/misskey:12.47.1'
MISSKEY_ID: ${{ matrix.method }}
- run: cargo test --manifest-path misskey-api/Cargo.toml --no-default-features --features "12-47-0 ${{ matrix.method }}"
timeout-minutes: 5
env:
TEST_API_URL: http://localhost:3000/api/
TEST_WEBSOCKET_URL: ws://localhost:3000/streaming
TEST_ADMIN_TOKEN: ${{ steps.setup_env.outputs.admin_token }}
TEST_USER_TOKEN: ${{ steps.setup_env.outputs.user_token }}
test_websocket:
name: Test misskey-websocket with different runtime
runs-on: ubuntu-20.04
timeout-minutes: 15
strategy:
matrix:
features:
- tokio-runtime
- async-std-runtime
steps:
- uses: actions/checkout@v3
- run: cp ci/Cargo.lock ci/rust-toolchain.toml .
- uses: Swatinem/rust-cache@v2
- run: cargo build --locked --tests --manifest-path misskey-websocket/Cargo.toml --no-default-features --features ${{ matrix.features }}
- id: setup_env
run: ./ci/testenv/setup.sh
env:
MISSKEY_IMAGE: 'misskey/misskey:12.0.0'
MISSKEY_ID: aid
- run: cargo test --manifest-path misskey-websocket/Cargo.toml --no-default-features --features ${{ matrix.features }}
timeout-minutes: 3
env:
TEST_WEBSOCKET_URL: ws://localhost:3000/streaming
TEST_USER_TOKEN: ${{ steps.setup_env.outputs.user_token }}