Service specific protocol tests (#3049) #915
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: | |
push: | |
branches: | |
- version-3 | |
pull_request: | |
branches: | |
- version-3 | |
permissions: | |
id-token: write # required for OIDC | |
contents: read | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
env: | |
GH_REF: ${{github.head_ref}} | |
GH_REPO: ${{github.repository}} | |
GH_EVENT: ${{github.event_name}} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [jruby-9.2, 2.6, 2.7, 3.2, 3.3] | |
steps: | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- uses: actions/checkout@v4 | |
- name: Install gems | |
run: | | |
bundle config set --local without 'docs repl development' | |
bundle install | |
- name: SDK Build | |
run: bundle exec rake build | |
- name: Benchmark | |
env: | |
JRUBY_OPTS: -J-Xmx4g | |
run: EXECUTION_ENV=github-action bundle exec rake benchmark | |
- name: configure aws credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::469596866844:role/aws-sdk-ruby-performance-reporter | |
role-session-name: benchmark-report | |
aws-region: us-west-2 | |
- name: Archive benchmark report | |
run: bundle exec rake benchmark:archive | |
- name: Upload benchmark metrics | |
run: bundle exec rake benchmark:put-metrics |