Skip to content

Commit

Permalink
ci: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Dec 22, 2024
1 parent a6fd145 commit dd70274
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/wc-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,33 @@ jobs:
- run: tfmv --version
- run: tfmv --help

- run: tfmv --replace "-/_"
- run: tfmv -r "-/_"
working-directory: example
- run: diff main.tf expected_main.tf
working-directory: example

- run: tfmv -j tfmv.jsonnet foo/aws_s3_bucket.tf foo/aws_instance.tf
- name: Test -j (--jsonnet)
run: tfmv -j tfmv.jsonnet foo/aws_s3_bucket.tf foo/aws_instance.tf
working-directory: example
- run: diff foo/aws_s3_bucket.tf foo/expected_aws_s3_bucket.tf
working-directory: example
- run: diff foo/aws_instance.tf foo/expected_aws_instance.tf
working-directory: example

- run: tfmv -j tfmv.jsonnet -m moved_blocks.tf bar/main.tf
- name: Test -m
run: tfmv -j tfmv.jsonnet -m moved_blocks.tf bar/main.tf
working-directory: example
- run: diff bar/main.tf bar/expected_main.tf
working-directory: example

- run: tfmv -j tfmv.jsonnet -m same bar/foo.tf
- name: Test -m same
run: tfmv -j tfmv.jsonnet -m same bar/foo.tf
working-directory: example
- run: diff bar/foo.tf bar/expected_foo.tf
working-directory: example

- run: tfmv -r -j tfmv.jsonnet
- name: Test -R (--recursive)
run: tfmv -R -j tfmv.jsonnet
working-directory: example
- run: diff foo/nest/main.tf foo/nest/expected_main.tf
working-directory: example

0 comments on commit dd70274

Please sign in to comment.