Skip to content

Commit

Permalink
feat: create async gem sample [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Dec 12, 2024
1 parent 7d32b21 commit 1a002d2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,43 @@ concurrency:
cancel-in-progress: true

jobs:
test-async:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container:
- 'ubuntu-20.04'
- 'alpine-3.17'
package_ruby_ver:
- '3.2.5'
container:
image: ghcr.io/tamatebako/tebako-${{ matrix.container }}:latest
steps:
- name: Install curl/procps
run: |
if [ -e "/etc/lsb-release" ]; then
apt-get -y update
apt-get -y install curl procps
elif [ -e "/etc/alpine-release" ]; then
apk --no-cache --upgrade add curl procps
fi
- name: Checkout sample
uses: actions/checkout@v4

- name: Package
run: tebako press -e binance.rb -o binance.tebako -r async -R ${{ matrix.package_ruby_ver }}

- name: Start packaged application
run: ./binance.tebako &

- name: Wait for the application to start and do some work
run: sleep 10

- name: End application
run: pkill -f binance.tebako

test-sinatra:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 1a002d2

Please sign in to comment.