From 58df640b60efdd58b6dede2e4fa1517e13e2451a Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Thu, 28 Sep 2023 20:32:35 +0300 Subject: [PATCH] Fix Algola reindex --- .../workflows/test-no-changes-drift-more.yml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/test-no-changes-drift-more.yml diff --git a/.github/workflows/test-no-changes-drift-more.yml b/.github/workflows/test-no-changes-drift-more.yml new file mode 100644 index 000000000..02b7791bc --- /dev/null +++ b/.github/workflows/test-no-changes-drift-more.yml @@ -0,0 +1,72 @@ +name: "Test - No changes" + +on: + workflow_dispatch: {} + pull_request: + branches: [ main ] + types: [opened, synchronize, reopened] + +env: + AWS_REGION: us-east-2 + +# Permissions required for assuming AWS identity +permissions: + id-token: write + contents: read + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Setup + run: echo "Do setup" + + test: + runs-on: ubuntu-latest + continue-on-error: true + needs: [setup] + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - name: Plan Atmos Component + id: current + uses: ./ + with: + component: "foobar" + stack: "plat-ue2-sandbox" + component-path: "components/terraform/foobar" + terraform-plan-role: ${{ secrets.TERRAFORM_PLAN_ROLE }} + terraform-state-role: ${{ secrets.TERRAFORM_STATE_ROLE }} + terraform-state-bucket: ${{ secrets.TERRAFORM_STATE_BUCKET }} + terraform-state-table: ${{ secrets.TERRAFORM_STATE_TABLE }} + aws-region: ${{ env.AWS_REGION }} + sha: da39a3ee5e6b4b0d3255bfef95601890afd80709 + drift-detection-mode-enabled: true + + outputs: + result: ${{ steps.current.outcome }} + summary: ${{ steps.current.outputs.summary }} + + assert: + runs-on: ubuntu-latest + needs: [test] + steps: + - uses: nick-fields/assert-action@v1 + with: + expected: 'success' + actual: "${{ needs.test.outputs.result }}" + + - uses: nick-fields/assert-action@v1 + with: + actual: "${{ fromJSON(needs.test.outputs.summary) }}" + expected: "" + + teardown: + runs-on: ubuntu-latest + needs: [assert] + if: ${{ always() }} + steps: + - name: Tear down + run: echo "Do Tear down"