chore(CI): run CI using GHA through CodeBuild action #4
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
name: AWS CodeBuild CI | |
on: | |
pull_request: | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
CI: | |
name: CI | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [16, 18, 20] | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::587316601012:role/ESDKCiCdInfrastructure-CodeBuildRole-10W9UOXMRVOOO | |
aws-region: us-west-2 | |
role-duration-seconds: 3600 | |
- name: Run Tests | |
uses: aws-actions/aws-codebuild-run-build@v1 | |
timeout-minutes: 60 | |
with: | |
project-name: JavaScriptESDK | |
compute-type-override: BUILD_GENERAL1_LARGE | |
# - name: Run Browser Tests | |
# uses: aws-actions/aws-codebuild-run-build@v1 | |
# timeout-minutes: 60 | |
# with: | |
# project-name: JavaScriptESDK | |
# compute-type-override: BUILD_GENERAL1_LARGE | |
# buildspec-override: codebuild/nodejs${{matrix.node-version}} | |
# env-vars-for-codebuild: JAVA_ENV_VERSION | |
# - name: Run Compliance | |
# uses: aws-actions/aws-codebuild-run-build@v1 | |
# timeout-minutes: 60 | |
# with: | |
# project-name: JavaScriptESDK | |
# compute-type-override: BUILD_GENERAL1_LARGE | |
# buildspec-override: codebuild/nodejs${{matrix.node-version}} | |
# env-vars-for-codebuild: JAVA_ENV_VERSION |