-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename : TF | Test | Sample Test Code
- Loading branch information
1 parent
275ad91
commit 3242464
Showing
11 changed files
with
35 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
[< Backaward](../README.md) | ||
# Terratest | ||
|
||
# Test Guide | ||
|
||
Terraform Test is designed by [Spacelift - terraform-test](https://spacelift.io/blog/terraform-test) | ||
## 1. golangci-lint | ||
|
||
Use `golangci-lint` to lint golang. | ||
|
||
### 1.a. Installation | ||
|
||
- References : https://golangci-lint.run/usage/install/#binaries | ||
|
||
Use git-bash to install golangci-lint in Windows. | ||
|
||
```shell | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2 | ||
|
||
golangci-lint --version | ||
``` | ||
|
||
If this way fail to install golangci-lint, use choco. | ||
|
||
| Of course, choco installation is not provided official provider. <br> So golangci-lint is successfully working in Windows. | ||
|
||
```shell | ||
choco install golangci-lint | ||
``` | ||
|
||
### 1.b. Configuration | ||
|
||
- References : https://golangci-lint.run/usage/configuration/ | ||
|
||
```shell | ||
golangci-lint linters | ||
``` | ||
|
||
```yml | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.