-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (37 loc) · 911 Bytes
/
Copy pathtest-api.yml
File metadata and controls
43 lines (37 loc) · 911 Bytes
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
name: Test API
permissions:
contents: read
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
failover:
runs-on: ubuntu-latest
services:
mock-server:
image: livekit/test-server:latest
ports:
- 9999:9999
- 10000:10000
- 10001:10001
- 10002:10002
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1.190.0
with:
ruby-version: "3.3"
bundler-cache: true
- name: Wait for mock server
run: |
for i in $(seq 1 30); do
curl -sf http://127.0.0.1:9999/settings/regions >/dev/null && exit 0
sleep 1
done
echo "mock server did not become ready" && exit 1
- name: Run API tests
run: bundle exec rspec spec/api