Skip to content

Merge pull request #75 from showwin/dependabot/pip/webapp/python_sani… #49

Merge pull request #75 from showwin/dependabot/pip/webapp/python_sani…

Merge pull request #75 from showwin/dependabot/pip/webapp/python_sani… #49

Workflow file for this run

name: Benchmark
on:
workflow_dispatch:
push:
jobs:
benchmark:
name: Run benchmark
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language:
- "crystal"
- "go"
- "nodejs"
- "php"
- "python"
- "ruby"
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
UNAME: ${{ vars.DOCKER_HUB_USERNAME }}
steps:
- uses: actions/checkout@v4
- name: Replace base image in docker-compose.yml with github actor name
run: |
make change-lang
sed -i 's/ishocon2-app-base/${{ env.UNAME }}\/ishocon2-app-base/g' ./docker-compose.yml
sed -i 's/ishocon2-bench/${{ env.UNAME }}\/ishocon2-bench/g' ./docker-compose.yml
sed -i 's/ishocon2-app-${{ env.ISHOCON_APP_LANG }}/${{ env.UNAME }}\/ishocon2-app-${{ env.ISHOCON_APP_LANG }}/g' ./docker-compose.yml
cat ./docker-compose.yml
- name: Build images
run: |
make pull || true
make build
timeout-minutes: 20
- run: make up bench-with-db-init
timeout-minutes: 10
- name: Dump docker logs
uses: jwalton/gh-docker-logs@v2
if: ${{ always() }}