|
5 | 5 | branches:
|
6 | 6 | - "**"
|
7 | 7 |
|
8 |
| - # pull_request: |
9 |
| - # branches: |
10 |
| - # - "**" |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - "**" |
11 | 11 |
|
12 | 12 | jobs:
|
13 | 13 | ci:
|
@@ -45,14 +45,14 @@ jobs:
|
45 | 45 | ./append_secret.py AZURE_APP_CONFIGURATION_CONNECTION_STRING "${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}"
|
46 | 46 |
|
47 | 47 |
|
48 |
| - # - name: Running tests |
49 |
| - # run: | |
50 |
| - # chmod -R 777 ./$home |
51 |
| - # make test |
52 |
| - # - name: Generate coverage report |
53 |
| - # env: |
54 |
| - # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
55 |
| - # run: bash <(curl -s https://codecov.io/bash) |
| 48 | + - name: Running tests |
| 49 | + run: | |
| 50 | + chmod -R 777 ./$home |
| 51 | + make test |
| 52 | + - name: Generate coverage report |
| 53 | + env: |
| 54 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 55 | + run: bash <(curl -s https://codecov.io/bash) |
56 | 56 |
|
57 | 57 | - name: Setup terraform
|
58 | 58 | uses: hashicorp/setup-terraform@v1
|
|
71 | 71 |
|
72 | 72 | - name: Terraform Plan Stage
|
73 | 73 | id: plan-stage
|
74 |
| - run: | |
75 |
| - terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -var image_tag=latest -no-color |
| 74 | + run: terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -var image_tag=latest -no-color |
76 | 75 | continue-on-error: true
|
77 | 76 | working-directory: ./${{ env.WORKING_DIR }}
|
78 | 77 | env:
|
@@ -120,32 +119,32 @@ jobs:
|
120 | 119 | body: output
|
121 | 120 | })
|
122 | 121 |
|
123 |
| - - name: Update Pull Request with Prod Plan |
124 |
| - |
125 |
| - if: github.event_name == 'pull_request' |
126 |
| - env: |
127 |
| - PLAN: "terraform\n${{ steps.plan-prod.outputs.stdout }}" |
128 |
| - TF_WORKSPACE: prod |
129 |
| - with: |
130 |
| - github-token: ${{ secrets.GITHUB_TOKEN }} |
131 |
| - script: | |
132 |
| - const output = `#### [${{ env.WORKING_DIR }}][${{ env.TF_WORKSPACE }}] Terraform Plan 📖 \`${{ steps.plan-prod.outcome }}\` |
133 |
| - <details><summary>Show Plan</summary> |
134 |
| - \`\`\`\n |
135 |
| - ${process.env.PLAN} |
136 |
| - \`\`\` |
137 |
| - </details> |
138 |
| - *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`; |
139 |
| - github.issues.createComment({ |
140 |
| - issue_number: context.issue.number, |
141 |
| - owner: context.repo.owner, |
142 |
| - repo: context.repo.repo, |
143 |
| - body: output |
144 |
| - }) |
| 122 | + # - name: Update Pull Request with Prod Plan |
| 123 | + |
| 124 | + # if: github.event_name == 'pull_request' |
| 125 | + # env: |
| 126 | + # PLAN: "terraform\n${{ steps.plan-prod.outputs.stdout }}" |
| 127 | + # TF_WORKSPACE: prod |
| 128 | + # with: |
| 129 | + # github-token: ${{ secrets.GITHUB_TOKEN }} |
| 130 | + # script: | |
| 131 | + # const output = `#### [${{ env.WORKING_DIR }}][${{ env.TF_WORKSPACE }}] Terraform Plan 📖 \`${{ steps.plan-prod.outcome }}\` |
| 132 | + # <details><summary>Show Plan</summary> |
| 133 | + # \`\`\`\n |
| 134 | + # ${process.env.PLAN} |
| 135 | + # \`\`\` |
| 136 | + # </details> |
| 137 | + # *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`; |
| 138 | + # github.issues.createComment({ |
| 139 | + # issue_number: context.issue.number, |
| 140 | + # owner: context.repo.owner, |
| 141 | + # repo: context.repo.repo, |
| 142 | + # body: output |
| 143 | + # }) |
145 | 144 | - name: Terraform Plan Stage Status
|
146 | 145 | if: steps.plan-stage.outcome == 'failure'
|
147 | 146 | run: exit 1
|
148 | 147 |
|
149 |
| - - name: Terraform Plan Prod Status |
150 |
| - if: steps.plan-prod.outcome == 'failure' |
151 |
| - run: exit 1 |
| 148 | + # - name: Terraform Plan Prod Status |
| 149 | + # if: steps.plan-prod.outcome == 'failure' |
| 150 | + # run: exit 1 |
0 commit comments