Update passenger workflow. #173
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: Bench Node | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
env: | |
CONSOLE_OUTPUT: XTerm | |
jobs: | |
test: | |
name: ${{matrix.ruby}} ${{matrix.name}} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby: "3.3" | |
name: "Node-http" | |
server: "node examples/node/server.js" | |
endpoint: "http://localhost:3000" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Run benchmarks | |
run: | | |
${{matrix.server}} & | |
bundle exec benchmark-http wait ${{matrix.endpoint}} | |
bundle exec benchmark-http latency ${{matrix.endpoint}} |