Skip to content

Add Ruby connector sync and update Rails to use connector (#575) #83

Add Ruby connector sync and update Rails to use connector (#575)

Add Ruby connector sync and update Rails to use connector (#575) #83

name: Ruby cluster management integration tests
permissions: {}
on:
workflow_call: {}
workflow_dispatch:
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
id-token: write # required by aws-actions/configure-aws-credentials
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Ruby 3.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.RUBY_IAM_ROLE }}
aws-region: us-east-1
- name: Configure and run integration for cluster management
working-directory: ./ruby/cluster_management
run: |
bundle install
rspec
cleanup:
if: always()
needs: test
uses: ./.github/workflows/dsql-cluster-cleanup.yml
with:
run-id: ${{ github.run_id }}
regions: us-east-1 us-east-2
secrets:
AWS_IAM_ROLE: ${{ secrets.RUBY_IAM_ROLE }}
permissions:
id-token: write # required by aws-actions/configure-aws-credentials