Skip to content

Identity and Auth

Identity and Auth #48

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
id-token: write # required for OIDC
contents: read
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.0', 3.1, 3.2]
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/checkout@v3
- name: Install gems
run: bundle install
working-directory: benchmark
- name: Benchmark
run: EXECUTION_ENV=github-action bundle exec rake benchmark
working-directory: benchmark
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
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
working-directory: benchmark
run: |
GH_REPO=${{github.repository}} GH_REF=${{github.head_ref}} GH_EVENT=${{github.event_name}} bundle exec rake archive
- name: Upload benchmark metrics
working-directory: benchmark
run: |
GH_REPO=${{github.repository}} GH_REF=${{github.head_ref}} GH_EVENT=${{github.event_name}} bundle exec rake put-metrics