Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzon committed Dec 3, 2024
1 parent 4fd90b2 commit 1add014
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
description: Upstream aws-cdk version to use in tests
required: false

env:
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test

jobs:
dynamic-cdk-version-testing:
runs-on: ubuntu-latest
Expand All @@ -23,16 +27,10 @@ jobs:
matrix:
node-version: ['22.x']
python-version: ['3.12']
region: ['us-east-1']
# cdk-version: ${{ fromJson(inputs.cdk-version || '[ "2.166.0", "2.167.0", ""]') }}
cdk-version: ${{ fromJson(inputs.cdk-version || '[""]') }}
fail-fast: false

env:
AWS_REGION: ${{ matrix.region }}
AWS_DEFAULT_REGION: ${{ matrix.region }}
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -79,6 +77,19 @@ jobs:
- name: Install localstack CLI
run: pip install localstack

- name: Set up unique folder
run: |
export WORK_DIR="cdk-test$GITHUB_RUN_NUMBER"
export STACK_NAME="CdkTest${GITHUB_RUN_NUMBER}Stack"
mkdir -p $WORK_DIR
echo "WORK_DIR=$WORK_DIR" >> $GITHUB_ENV
echo "STACK_NAME=$STACK_NAME" >> $GITHUB_ENV
- name: Initialize new CDK app
run: |
cd $WORK_DIR
cdklocal init app --language=python
- name: Start and wait for localstack (Community)
timeout-minutes: 10
run: |
Expand All @@ -92,19 +103,6 @@ jobs:
echo "LocalStack container is already running. Skipping start."
fi
- name: Set up unique folder
run: |
export WORK_DIR="cdk-test-$GITHUB_RUN_NUMBER"
export STACK_NAME="CdkTest${GITHUB_RUN_NUMBER}Stack"
mkdir -p $WORK_DIR
echo "WORK_DIR=$WORK_DIR" >> $GITHUB_ENV
echo "STACK_NAME=$STACK_NAME" >> $GITHUB_ENV
- name: Initialize new CDK app
run: |
cd $WORK_DIR
cdklocal init app --language=python
- name: Install python libs
run: |
cd $WORK_DIR
Expand Down

0 comments on commit 1add014

Please sign in to comment.