|
19 | 19 | contents: read |
20 | 20 | strategy: |
21 | 21 | matrix: |
22 | | - package: [logger, metrics, tracer, parameters, idempotency] |
| 22 | + package: [layers, packages/logger, packages/metrics, packages/tracer, packages/parameters, packages/idempotency] |
23 | 23 | version: [14, 16, 18] |
24 | 24 | fail-fast: false |
25 | 25 | steps: |
@@ -55,56 +55,14 @@ jobs: |
55 | 55 | role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }} |
56 | 56 | aws-region: eu-west-1 |
57 | 57 | mask-aws-account-id: true |
58 | | - - name: Run integration tests on utils |
59 | | - run: | |
60 | | - RUNTIME=nodejs${{ matrix.version }}x npm run test:e2e -w packages/${{ matrix.package }} |
61 | | - layer-e2e-tests: |
62 | | - runs-on: ubuntu-latest |
63 | | - env: |
64 | | - NODE_ENV: dev |
65 | | - PR_NUMBER: ${{ inputs.prNumber }} |
66 | | - permissions: |
67 | | - id-token: write # needed to interact with GitHub's OIDC Token endpoint. |
68 | | - contents: read |
69 | | - strategy: |
70 | | - fail-fast: false |
71 | | - matrix: |
72 | | - version: [14, 16, 18] |
73 | | - steps: |
74 | | - - name: Checkout Repo |
75 | | - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
76 | | - # If we pass a PR Number when triggering the workflow we will retrieve the PR info and get its headSHA |
77 | | - - name: Extract PR details |
78 | | - id: extract_PR_details |
79 | | - if: ${{ inputs.prNumber != '' }} |
80 | | - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 |
81 | | - with: |
82 | | - script: | |
83 | | - const script = require('.github/scripts/get_pr_info.js'); |
84 | | - await script({github, context, core}); |
85 | | - # Only if a PR Number was passed and the headSHA of the PR extracted, |
86 | | - # we checkout the PR at that point in time |
87 | | - - name: Checkout PR code |
88 | | - if: ${{ inputs.prNumber != '' }} |
89 | | - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
90 | | - with: |
91 | | - ref: ${{ steps.extract_PR_details.outputs.headSHA }} |
92 | | - - name: Setup NodeJS |
93 | | - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
94 | | - with: |
95 | | - # Always use version 18 |
96 | | - node-version: 18 |
97 | | - - name: Setup dependencies |
98 | | - uses: ./.github/actions/cached-node-modules |
99 | | - - name: "Configure AWS credentials" |
100 | | - uses: aws-actions/configure-aws-credentials@04b98b3f9e85f563fb061be8751a0352327246b0 # v3.0.1 |
101 | | - with: |
102 | | - role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }} |
103 | | - aws-region: eu-west-1 |
104 | | - mask-aws-account-id: true |
105 | 58 | - name: Create layer files |
| 59 | + if: ${{ matrix.package == 'layers' }} |
106 | 60 | run: | |
107 | 61 | export VERSION=latest |
108 | 62 | bash .github/scripts/setup_tmp_layer_files.sh |
109 | | - - name: Run integration test on layers |
110 | | - run: RUNTIME=nodejs${{ matrix.version }}x npm run test:e2e -w layers |
| 63 | + - name: Run integration tests on utils |
| 64 | + env: |
| 65 | + RUNTIME: nodejs${{ matrix.version }}x |
| 66 | + CI: true |
| 67 | + JSII_SILENCE_WARNING_DEPRECATED_NODE_VERSION: true |
| 68 | + run: npm run test:e2e -w ${{ matrix.package }} |
0 commit comments