File tree Expand file tree Collapse file tree 4 files changed +128
-0
lines changed Expand file tree Collapse file tree 4 files changed +128
-0
lines changed Original file line number Diff line number Diff line change 1+ name : JSON
2+ on :
3+ pull_request :
4+
5+ jobs :
6+ format :
7+ name : Format
8+ runs-on : ubuntu-latest
9+ timeout-minutes : 5
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2.1.0
13+ - name : Prettier
14+ run : docker run --rm -v ${PWD}:/work tmknom/prettier --list-different --parser=json '**/*.json'
Original file line number Diff line number Diff line change 1+ name : Markdown
2+ on :
3+ pull_request :
4+
5+ jobs :
6+ lint :
7+ name : Lint
8+ runs-on : ubuntu-latest
9+ timeout-minutes : 5
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2.1.0
13+ - name : markdownlint
14+ run : docker run --rm -i -v ${PWD}:/work tmknom/markdownlint
15+
16+ format :
17+ name : Format
18+ runs-on : ubuntu-latest
19+ timeout-minutes : 5
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v2.1.0
23+ - name : Prettier
24+ run : docker run --rm -v ${PWD}:/work tmknom/prettier --list-different --parser=markdown '**/*.md'
Original file line number Diff line number Diff line change 1+ name : Terraform
2+ on :
3+ pull_request :
4+
5+ env :
6+ TERRAFORM_VERSION : 0.12.24
7+ AWS_DEFAULT_REGION : us-east-1
8+
9+ jobs :
10+ format :
11+ name : Format
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 5
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2.1.0
17+ - name : Format all
18+ uses : hashicorp/terraform-github-actions@v0.8.0
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+ with :
22+ tf_actions_version : ${{ env.TERRAFORM_VERSION }}
23+ tf_actions_comment : true
24+ tf_actions_subcommand : fmt
25+
26+ validate :
27+ name : Validate
28+ runs-on : ubuntu-latest
29+ timeout-minutes : 5
30+ strategy :
31+ matrix :
32+ dir :
33+ - .
34+ - examples/minimal
35+ - examples/complete
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v2.1.0
39+ - name : Init
40+ uses : hashicorp/terraform-github-actions@v0.8.0
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ with :
44+ tf_actions_version : ${{ env.TERRAFORM_VERSION }}
45+ tf_actions_working_dir : ${{ matrix.dir }}
46+ tf_actions_comment : true
47+ tf_actions_subcommand : init
48+ - name : Validate
49+ uses : hashicorp/terraform-github-actions@v0.8.0
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ with :
53+ tf_actions_version : ${{ env.TERRAFORM_VERSION }}
54+ tf_actions_working_dir : ${{ matrix.dir }}
55+ tf_actions_comment : true
56+ tf_actions_subcommand : validate
57+
58+ lint :
59+ name : Lint
60+ runs-on : ubuntu-latest
61+ timeout-minutes : 5
62+ steps :
63+ - name : Checkout
64+ uses : actions/checkout@v2.1.0
65+ - name : TFLint
66+ run : docker run --rm -v ${PWD}:/data wata727/tflint
Original file line number Diff line number Diff line change 1+ name : YAML
2+ on :
3+ pull_request :
4+
5+ jobs :
6+ lint :
7+ name : Lint
8+ runs-on : ubuntu-latest
9+ timeout-minutes : 5
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2.1.0
13+ - name : yamllint
14+ run : docker run --rm -v ${PWD}:/work tmknom/yamllint --strict .
15+
16+ format :
17+ name : Format
18+ runs-on : ubuntu-latest
19+ timeout-minutes : 5
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v2.1.0
23+ - name : Prettier
24+ run : docker run --rm -v ${PWD}:/work tmknom/prettier --list-different --parser=yaml '**/*.y*ml'
You can’t perform that action at this time.
0 commit comments