Add test for OPTIONS * handling. #243
Workflow file for this run
This file contains hidden or 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: Test Passenger | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| env: | |
| CONSOLE_OUTPUT: XTerm | |
| jobs: | |
| test: | |
| name: ${{matrix.ruby}} ${{matrix.name}} | |
| runs-on: ubuntu-latest | |
| env: | |
| BUNDLE_GEMFILE: ${{matrix.gemfile}} | |
| RACK_CONFORM_SERVER: ${{matrix.server}} | |
| RACK_CONFORM_ENDPOINT: ${{matrix.endpoint}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ruby: ruby | |
| name: "Passenger-v6-Rack-v2-http" | |
| gemfile: "gems/passenger-v6-rack-v2.rb" | |
| server: "passenger start" | |
| endpoint: "http://localhost:3000" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{matrix.ruby}} | |
| bundler-cache: true | |
| - name: Install dependenies | |
| run: sudo apt-get install passenger | |
| - name: Run tests | |
| timeout-minutes: 10 | |
| run: bundle exec bake test | |
| - name: Dump server log | |
| if: failure() | |
| run: cat server.log | |
| - name: Run benchmarks | |
| timeout-minutes: 10 | |
| run: | | |
| bundle exec ${{matrix.server}} & | |
| bundle exec benchmark-http wait ${{matrix.endpoint}} | |
| bundle exec benchmark-http latency ${{matrix.endpoint}} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: R${{matrix.ruby}}-${{matrix.name}} | |
| path: "*.log" |