Skip to content

Commit

Permalink
refactor: use kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
aliscott committed Jan 4, 2022
1 parent cdb10e5 commit ff76c26
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/examples_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
--format=json --out-file=/tmp/infracost.json
- name: Check Conftest Policies
run: conftest test --policy examples/conftest/policy /tmp/infracost.json
multi_project_config_file:
multi-project-config-file:
name: Multi-project config file
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -56,15 +56,15 @@ jobs:
--show-skipped --out-file=/tmp/infracost_comment.md
- name: Check the comment
run: >-
diff ./testdata/multi_project_config_file_comment_golden.md
diff ./testdata/multi-project-config-file_comment_golden.md
/tmp/infracost_comment.md
if: env.UPDATE_GOLDEN_FILES != 'true'
- name: Update the golden comment file
run: >-
cp /tmp/infracost_comment.md
./testdata/multi_project_config_file_comment_golden.md
./testdata/multi-project-config-file_comment_golden.md
if: env.UPDATE_GOLDEN_FILES == 'true'
multi_project_matrix:
multi-project-matrix:
name: Multi-project matrix
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -99,11 +99,11 @@ jobs:
name: infracost_jsons
path: /tmp/infracost_${{ matrix.dir }}.json
if: github.actor != 'nektos/act'
multi_project_matrix_merge:
multi-project-matrix-merge:
name: Multi-project matrix merge
runs-on: ubuntu-latest
needs:
- multi_project_matrix
- multi-project-matrix
steps:
- uses: actions/checkout@v2
- name: Download all Infracost breakdown files
Expand All @@ -125,16 +125,16 @@ jobs:
--out-file=/tmp/infracost_comment.md
- name: Check the comment
run: >-
diff ./testdata/multi_project_matrix_merge_comment_golden.md
diff ./testdata/multi-project-matrix-merge_comment_golden.md
/tmp/infracost_comment.md
if: env.UPDATE_GOLDEN_FILES != 'true'
- name: Update the golden comment file
run: >-
cp /tmp/infracost_comment.md
./testdata/multi_project_matrix_merge_comment_golden.md
./testdata/multi-project-matrix-merge_comment_golden.md
if: env.UPDATE_GOLDEN_FILES == 'true'
if: github.actor != 'nektos/act'
multi_terraform_workspace_config_file:
multi-terraform-workspace-config-file:
name: Multi-Terraform workspace config file
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -164,13 +164,13 @@ jobs:
- name: Check the comment
run: >-
diff
./testdata/multi_terraform_workspace_config_file_comment_golden.md
./testdata/multi-terraform-workspace-config-file_comment_golden.md
/tmp/infracost_comment.md
if: env.UPDATE_GOLDEN_FILES != 'true'
- name: Update the golden comment file
run: >-
cp /tmp/infracost_comment.md
./testdata/multi_terraform_workspace_config_file_comment_golden.md
./testdata/multi-terraform-workspace-config-file_comment_golden.md
if: env.UPDATE_GOLDEN_FILES == 'true'
open-policy-agent:
name: Open Policy Agent
Expand Down
8 changes: 4 additions & 4 deletions examples/multi-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: Multi-project config file
on: [pull_request]

jobs:
multi_project_config_file:
multi-project-config-file:
name: Multi-project config file
runs-on: ubuntu-latest

Expand Down Expand Up @@ -56,7 +56,7 @@ name: Multi-project matrix
on: [pull_request]
jobs:
multi_project_matrix:
multi-project-matrix:
name: Multi-project matrix
runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
name: infracost_jsons
path: /tmp/infracost_${{ matrix.dir }}.json

multi_project_matrix_merge:
multi-project-matrix-merge:
name: Multi-project matrix merge
runs-on: ubuntu-latest
needs: [multi_project_matrix]
needs: [multi-project-matrix]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-terraform-workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Multi-terraform workspace config file
on: [pull_request]

jobs:
multi_terraform_workspace_config_file:
multi-terraform-workspace-config-file:
name: Multi-Terraform workspace config file
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions scripts/generateExamplesTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const exampleRegex =

const localSkipJobs = [
// These jobs are skipped locally until https://github.com/nektos/act/issues/769 is fixed
'multi_project_matrix',
'multi_project_matrix_merge',
'multi-project-matrix',
'multi-project-matrix-merge',
]

const workflowTemplate = {
Expand Down

0 comments on commit ff76c26

Please sign in to comment.