Merge pull request #58 from ably/basePath #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |