-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.2 KB
/
acceptance-test.yml
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
name: Acceptance Test
on:
workflow_call:
inputs:
account-id:
required: true
type: string
region:
required: true
type: string
test-bucket:
required: true
type: string
stack-name:
required: true
type: string
jobs:
acceptance-test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
bundler-cache: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ inputs.region }}
role-to-assume: arn:aws:iam::${{ inputs.account-id }}:role/DevOps-GitHubOidcFederatedRole
role-session-name: GitHub_Workflow-Deploy_Porter
- run: |
export PORTER_TEST_BUCKET_NAME=${{ inputs.test-bucket }}
export PORTER_STATE_MACHINE_ARN=$(aws cloudformation describe-stacks --region ${{ inputs.region }} --stack-name ${{ inputs.stack-name }} --query "Stacks[0].Outputs[?OutputKey=='StateMachineArn'].OutputValue" --output text)
# bundle exec rake test