Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon committed Dec 16, 2024
1 parent 2cbbf50 commit 044cfa9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,22 @@ jobs:
with:
node-version: ${{ inputs.node-version }}
- name: Obtain all aws-cdk latest versions
id: set-matrix
id: heavy-matrix
if: ${{ inputs.run-all-latest-cdk-versions == true }}
run: |
VERSIONS_ARRAY=$(npm view aws-cdk versions --json | jq -c '.[-256:]' )
MATRIX="{\"cdk-version\":$VERSIONS_ARRAY}"
echo "MATRIX=$MATRIX" >> $GITHUB_OUTPUT
export MATRIX="{\"cdk-version\":$VERSIONS_ARRAY}"
- name: Obtain default list of aws-cdk versions
id: set-matrix
id: simple-matrix
if: ${{ inputs.run-all-latest-cdk-versions == false }}
run: |
VERSIONS_ARRAY=["1.10.0", "1.38.0", "1.95.1", "1.150.0", "2.30.0", "2.50.0", "2.75.0", "2.120.0", "2.166.0", "2.167.0", ""]
MATRIX="{\"cdk-version\":$VERSIONS_ARRAY}"
export MATRIX="{\"cdk-version\":$VERSIONS_ARRAY}"
- name: Generate matrix
id: simple-matrix
run: |
echo "MATRIX=$MATRIX" >> $GITHUB_OUTPUT

Expand Down

0 comments on commit 044cfa9

Please sign in to comment.