Add option to trigger GH workflows manually (#3187) #37
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: Bench | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Benchmarks | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Generators | |
| run: RUBYOPT="-W0" bundle exec ruby benchmark/generators.rb | |
| - name: Require | |
| run: RUBYOPT="-W0" bundle exec ruby benchmark/require.rb | |