Skip to content

hack: fix connection failure beteween containers on github actions #41

hack: fix connection failure beteween containers on github actions

hack: fix connection failure beteween containers on github actions #41

Workflow file for this run

name: Benchmark
on:
workflow_dispatch:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true
jobs:
benchmark:
name: Run benchmark
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language:
- "crystal"
- "go"
- "nodejs"
- "php"
- "python"
- "python_sanic"
- "ruby"
steps:
- uses: actions/checkout@v2
- run: echo 'Run benchmark for ISHOCON2'
- run: |
sed -i 's/python/'"$ISHOCON_APP_LANG"'/g' ./docker-compose.yml
cat ./docker-compose.yml
make build
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
- run: make up && sleep 60
# specifying IP `172.17.0.1` is hack to avoid connection failure on github actions
- run: docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip 172.0.0.1:443"
timeout-minutes: 5