-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (43 loc) · 1.21 KB
/
ruby-cm-integ-tests.yml
File metadata and controls
51 lines (43 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- 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