Revert "Stop requiring HTTP/2 adapter commands to come from stream owner" #372
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: Benchmark | |
on: | |
pull_request: | |
types: [ opened, reopened, synchronize, labeled ] | |
env: | |
MIX_ENV: test | |
jobs: | |
benchmark: | |
if: contains(github.event.pull_request.labels.*.name, 'benchmark') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install nghttp2 | |
run: sudo apt-get install nghttp2 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
repository: mtrudel/benchmark | |
- name: Setup Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: 1.14.x | |
otp-version: 25.1 | |
- name: Install mix dependencies | |
run: mix deps.get | |
- name: Compile code | |
run: mix compile | |
- name: Run benchmark against base branch | |
run: mix benchmark bandit@${{ github.event.pull_request.base.repo.clone_url }}@${{ github.event.pull_request.base.ref }} bandit@${{ github.event.pull_request.head.repo.clone_url }}@${{ github.event.pull_request.head.sha }} | |
- name: Upload results file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: http-benchmark.csv | |
path: http-benchmark.csv | |
- name: Record summary output | |
id: summary | |
run: cat http-summary.md >> $GITHUB_STEP_SUMMARY |