Skip to content

Commit

Permalink
fix-test-pipeline (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Jun 19, 2024
1 parent da1394b commit e05c564
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,49 +57,49 @@ jobs:
run: |
aws s3 cp ./cid.log s3://aws-cid-stage-logs/$GITHUB_EVENT_NAME/$GITHUB_REF_NAME/$GITHUB_RUN_NUMBER/python${{ matrix.python-version }}-${{ matrix.os }}/
publish-lambda-layer:
needs: test-cli
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install
run: |
python -m pip install --upgrade pip
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
role-session-name: ${{ secrets.AWS_SESSION_NAME }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Push LambdaLayer to S3
run: |
./assets/publish_lambda_layer.sh
#publish-lambda-layer:
# needs: test-cli
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# max-parallel: 1
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.x'
# - name: Install
# run: |
# python -m pip install --upgrade pip
# - name: configure aws credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ secrets.AWS_ROLE }}
# role-session-name: ${{ secrets.AWS_SESSION_NAME }}
# aws-region: ${{ secrets.AWS_REGION }}
# - name: Push LambdaLayer to S3
# run: |
# ./assets/publish_lambda_layer.sh

test-cfn:
needs: publish-lambda-layer
runs-on: 'ubuntu-latest'
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
role-session-name: ${{ secrets.AWS_SESSION_NAME }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Install Bats
run: |
sudo apt-get install -y bats
bats -v
- name: Run Bats Tests for CloudFormation
run: |
export lambda_bucket='aws-cid-stage'
# bats cfn-templates/cid-cfn.tests.bats
#test-cfn:
# needs: publish-lambda-layer
# runs-on: 'ubuntu-latest'
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v3
# - name: configure aws credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: ${{ secrets.AWS_ROLE }}
# role-session-name: ${{ secrets.AWS_SESSION_NAME }}
# aws-region: ${{ secrets.AWS_REGION }}
# - name: Install Bats
# run: |
# sudo apt-get install -y bats
# bats -v
# - name: Run Bats Tests for CloudFormation
# run: |
# export lambda_bucket='aws-cid-stage'
# # bats cfn-templates/cid-cfn.tests.bats

0 comments on commit e05c564

Please sign in to comment.