-
Notifications
You must be signed in to change notification settings - Fork 63
chore: move CI to GHA CodeBuild Runners #1422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
25f29ac
chore: move CI to GHA CodeBuild Runners
josecorella e8b997d
fix syntax
josecorella 4054bf4
checkout repo
josecorella 6a151ce
add creds
josecorella ad17030
fix condition
josecorella e770c14
bump non breaking deps
josecorella 58e7d4b
update
josecorella fea8e4c
fix
josecorella 8b6246b
deps
josecorella 788a00f
update
josecorella 0024dff
update
josecorella c5dd298
update
josecorella b4878d6
pin to a version od node
josecorella f961179
conditional
josecorella a221d1a
run
josecorella f550020
update
josecorella 11a2b17
add daily ci
josecorella eddafa6
fix typos
josecorella cf26bfc
add merge and check
josecorella 5184e16
revert
josecorella ae861bd
Apply suggestions from code review
josecorella 1eaf467
updates
josecorella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# This workflow performs tests in JavaScript. | ||
name: ESDK JavaScript CI Tests | ||
|
||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
CI: | ||
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 | ||
npm run coverage-merge | ||
npm run coverage-check | ||
- name: Test compliance | ||
env: | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
run: | | ||
npm ci --unsafe-perm | ||
josecorella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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 | ||
josecorella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
npm run build | ||
josecorella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
npm run verdaccio-publish | ||
npm run verdaccio-node-decrypt | ||
npm run verdaccio-node-encrypt | ||
- name: Run Test Vectors Browser node ${{matrix.node}} | ||
env: | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
NPM_CONFIG_UNSAFE_PERM: true | ||
PUBLISH_LOCAL: true | ||
run: | | ||
npm ci --unsafe-perm | ||
josecorella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
npm run build | ||
josecorella marked this conversation as resolved.
Show resolved
Hide resolved
|
||
npm run verdaccio-publish | ||
npm run verdaccio-browser-decrypt | ||
npm run verdaccio-browser-encrypt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This workflow runs every weekday at 15:00 UTC (8AM PDT) | ||
name: Daily CI | ||
|
||
on: | ||
schedule: | ||
- cron: "00 15 * * 1-5" | ||
|
||
jobs: | ||
DAILY_CI: | ||
# Don't run the cron builds on forks | ||
if: github.event_name != 'schedule' || github.repository_owner == 'aws' | ||
uses: ./.github/workflows/ci.yml |
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 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.