Skip to content

Commit 7ed30dc

Browse files
authored
Merge pull request #1134 from LeanerCloud/fix/remove-infracost-ci-job
ci: remove Infracost cost-estimate job (no API key configured)
2 parents 8378214 + 973ce06 commit 7ed30dc

1 file changed

Lines changed: 0 additions & 52 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -399,58 +399,6 @@ jobs:
399399
run: |
400400
docker-compose -f docker-compose.test.yml down -v
401401
402-
# Cost estimation with Infracost
403-
cost-estimate:
404-
name: Cost Estimation
405-
runs-on: ubuntu-latest
406-
if: github.event_name == 'pull_request'
407-
permissions:
408-
contents: read
409-
pull-requests: write
410-
411-
steps:
412-
- name: Checkout code
413-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
414-
with:
415-
persist-credentials: false
416-
417-
- name: Setup Infracost
418-
uses: infracost/actions/setup@d51fc54d23c9ad90f984b884257bd96dc2625067 # v4.1.0
419-
with:
420-
api-key: ${{ secrets.INFRACOST_API_KEY }}
421-
422-
- name: Checkout base branch
423-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
424-
with:
425-
persist-credentials: false
426-
ref: '${{ github.event.pull_request.base.ref }}'
427-
428-
- name: Generate Infracost cost estimate baseline
429-
run: |
430-
infracost breakdown --path=terraform/environments \
431-
--format=json \
432-
--out-file=/tmp/infracost-base.json
433-
434-
- name: Checkout PR branch
435-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
436-
with:
437-
persist-credentials: false
438-
439-
- name: Generate Infracost diff
440-
run: |
441-
infracost diff --path=terraform/environments \
442-
--format=json \
443-
--compare-to=/tmp/infracost-base.json \
444-
--out-file=/tmp/infracost.json
445-
446-
- name: Post Infracost comment
447-
run: |
448-
infracost comment github --path=/tmp/infracost.json \
449-
--repo=$GITHUB_REPOSITORY \
450-
--github-token=${{ github.token }} \
451-
--pull-request=${{ github.event.pull_request.number }} \
452-
--behavior=update
453-
454402
# Assert that the Azure custom-role actions list is identical in the TF module
455403
# and the ARM onboarding template. Fast (shell + jq only), so it always runs.
456404
# Path changes that trigger drift will be caught regardless of PR context.

0 commit comments

Comments
 (0)