chore: move CI to GHA CodeBuild Runners #33
This file contains hidden or 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
# This workflow performs tests in Java. | |
name: ESDK JavaScript CI Tests | |
on: [pull_request] | |
jobs: | |
testCI: | |
strategy: | |
matrix: | |
node: [16, 18.3.0, 20.4.0] | |
fail-fast: false | |
runs-on: codebuild-AWS-ESDK-JS-Release-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-5.0-large | |
permissions: | |
id-token: write | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node}} | |
- name: Configure AWS Credentials for Tests | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-west-2 | |
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-MPL-Dafny-Role-us-west-2 | |
role-session-name: JavaScriptTests | |
- name: Test Node ${{matrix.node}} | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: | | |
npm ci --unsafe-perm | |
npm run build | |
npm run coverage-node | |
- name: Test compliance | |
if: ${{ startsWith('18', matrix.node)}} | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: | | |
npm ci --unsafe-perm | |
npm run lint | |
npm run test_conditions | |
- name: Run Test Vectors Node ${{matrix.node}} | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
NPM_CONFIG_UNSAFE_PERM: true | |
PUBLISH_LOCAL: true | |
run: | | |
npm ci --unsafe-perm | |
npm run build | |
npm run verdaccio-publish | |
npm run verdaccio-node-decrypt | |
npm run verdaccio-node-encrypt | |
- name: Run Test Vectors Browser Node 18 | |
if: ${{ startsWith('18', matrix.node)}} | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
NPM_CONFIG_UNSAFE_PERM: true | |
PUBLISH_LOCAL: true | |
run: | | |
npm ci --unsafe-perm | |
npm run build | |
npm run verdaccio-publish | |
npm run verdaccio-browser-decrypt | |
npm run verdaccio-browser-encrypt |