diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index af9a54c..0a636dc 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout' - uses: actions/checkout@master + uses: actions/checkout@v2.3.4 - - name: 'Set up Python 3.7' + - name: Set up Python 3.7. uses: actions/setup-python@v2 with: python-version: '3.x' @@ -25,12 +25,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} - - - name: 'pre-commit check errors' + - name: pre-commit check errors uses: pre-commit/action@v2.0.0 continue-on-error: true - - name: 'pre-commit fix erros' + - name: pre-commit fix erros uses: pre-commit/action@v2.0.0 continue-on-error: true @@ -51,4 +50,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required - if: always() \ No newline at end of file + if: always() diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 09c04b1..e5184ba 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -54,7 +54,7 @@ jobs: cd ${{ matrix.directory }} terraform init terraform validate - terraform plan -input=false -no-color + - name: tflint uses: reviewdog/action-tflint@master with: diff --git a/.github/workflows/terratest.yml b/.github/workflows/terratest.yml index 868c2d4..2b8ed23 100644 --- a/.github/workflows/terratest.yml +++ b/.github/workflows/terratest.yml @@ -7,7 +7,7 @@ on: jobs: Terratest: - name: 'terratest' + name: 'APN Complete' runs-on: ubuntu-latest steps: @@ -21,12 +21,14 @@ jobs: aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }} aws-region: us-east-2 - - name: 'terratest' + - name: 'Terratest for APN Complete example' + if: ${{ github.event.label.name == 'terratest' }} uses: 'clouddrove/github-actions@v9.0.2' with: actions_subcommand: 'terratest' - if: ${{ github.event.label.name == 'terratest' }} - tf_actions_working_dir: '_test' + tf_actions_working_dir: '_test/APNS/complete' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: 'Slack Notification' uses: clouddrove/action-slack@v2 @@ -37,4 +39,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required - if: always() \ No newline at end of file + if: always()