fixup! Run check.rb on CI #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 3.3 | |
- 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: Run check.rb | |
run: ruby client/rb_client/check.rb | |
- 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 | |
continue-on-error: true |