-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (49 loc) · 1.55 KB
/
main.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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: swoole # Swoole extension
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '^1.17' # The Go version to download (if necessary) and use
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Install Thrift
run: |
sudo apt-get update
sudo apt-get install -y thrift-compiler
thrift --version
- name: Install Composer dependencies
run: composer update
- name: Run Composer build tasks
run: composer build:all
- name: Start server in background
run: |
composer serve > /dev/null 2>&1 &
sleep 3 # Give server some time to start
- name: Run Go client
run: composer run:go
- name: Run Python client
run: composer run:py
- name: Run PHP client
run: composer run:php
- name: Run BEAR.Sunday client
run: composer run:bear
- name: Run Ruby client
run: composer run:rb