diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index adea61b7..d4af1237 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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