-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1.11 KB
/
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
on:
pull_request:
push:
branches:
- main
jobs:
# Test that this action works with AWS credentials provided by the
# aws-actions/configure-aws-credentials action using GitHub OIDC.
#
# See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect
test-oidc:
runs-on: ubuntu-latest
permissions:
deployments: write
id-token: write
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-sdk-upload-action
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- uses: actions/checkout@v2
- name: Create test files for upload
run: |
mkdir -p test
echo "success!" > test/build-output.txt
- name: Test action invocation works
uses: ./
with:
sourcePath: test
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: test