Skip to content

Commit 8f35698

Browse files
Merge pull request #15 from terraform-module/chore/update-deps
Chore/update deps
2 parents 282e552 + 5880f1b commit 8f35698

18 files changed

+236
-395
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

.chglog/config.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
_extends: .github

.github/settings.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
_extends: .github
3+
4+
repository:
5+
# See https://developer.github.com/v3/repos/#edit for all available settings.
6+
name: terraform-aws-ecs-lambda
7+
description: "ℹ️ Deploy serverless function to AWS VPC."
8+
homepage: https://ivankatliarchuk.github.io
9+
topics: ivank, terraform, terraform-module, lambda, serverless
10+
private: false
11+
has_issues: true
12+
has_projects: false
13+
has_wiki: false
14+
has_downloads: false
15+
has_pages: true
16+
is_template: true
17+
default_branch: master
18+
allow_squash_merge: true
19+
allow_merge_commit: true
20+
allow_rebase_merge: true
21+
delete_branch_on_merge: true
22+
enable_automated_security_fixes: true
23+
enable_vulnerability_alerts: false
24+
25+
branches:
26+
- name: master

.github/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for https://github.com/probot/stale
2+
_extends: .github

.github/workflows/linter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: linter
3+
# This workflow is triggered on pushes to the repository.
4+
on:
5+
push:
6+
pull_request:
7+
branches:
8+
- main
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
terraform-validate:
14+
name: code format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
# https://github.com/hashicorp/setup-terraform
19+
- uses: hashicorp/setup-terraform@v2
20+
21+
- name: Cache terraform folder
22+
uses: actions/cache@v3
23+
with:
24+
path: ./.terraform
25+
key: terraform
26+
27+
- name: terraform fmt
28+
run: terraform fmt -check -recursive -diff
29+
continue-on-error: true
30+
31+
- name: terraform init
32+
run: terraform init
33+
34+
- name: terraform validate
35+
run: terraform validate
36+
37+
tflint:
38+
name: "tflint"
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/cache@v3
43+
name: Cache tflint plugin dir
44+
with:
45+
path: ~/.tflint.d/plugins
46+
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
47+
- uses: terraform-linters/setup-tflint@v2
48+
name: setup tflint
49+
- name: init tflint
50+
run: tflint --init --config .tflint.hcl
51+
- name: run tflint
52+
run: tflint -f compact --config .tflint.hcl

.github/workflows/main.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/pr-title.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'validate-pr-title'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: validate pr title
13+
runs-on: ubuntu-latest
14+
steps:
15+
# Please look up the latest version from
16+
# https://github.com/amannn/action-semantic-pull-request/releases
17+
- uses: amannn/[email protected]
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
# Configure which types are allowed.
22+
# Default: https://github.com/commitizen/conventional-commit-types
23+
types: |
24+
fix
25+
feat
26+
docs
27+
ci
28+
chore
29+
# Configure that a scope must always be provided.
30+
requireScope: false
31+
# If `subjectPattern` is configured, you can use this property to override
32+
# the default error message that is shown when the pattern doesn't match.
33+
# The variables `subject` and `title` can be used within the message.
34+
subjectPatternError: |
35+
The subject "{subject}" found in the pull request title "{title}"
36+
didn't match the configured pattern. Please ensure that the subject
37+
starts with an uppercase character.
38+
# For work-in-progress PRs you can typically use draft pull requests
39+
# from Github. However, private repositories on the free plan don't have
40+
# this option and therefore this action allows you to opt-in to using the
41+
# special "[WIP]" prefix to indicate this state. This will avoid the
42+
# validation of the PR title and the pull request checks remain pending.
43+
# Note that a second check will be reported if this is enabled.
44+
wip: true
45+
# When using "Squash and merge" on a PR with only one commit, GitHub
46+
# will suggest using that commit message instead of the PR title for the
47+
# merge commit, and it's easy to commit this by mistake. Enable this option
48+
# to also validate the commit message for one commit PRs.
49+
validateSingleCommit: false

.github/workflows/release.draft.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: release.draft
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
9+
inputs:
10+
prerelease:
11+
description: Is this a pre-release
12+
required: true
13+
default: true
14+
type: boolean
15+
publish:
16+
description: Publish release
17+
required: false
18+
default: false
19+
type: boolean
20+
bump:
21+
description: 'Bumping (#major, #minor or #patch)'
22+
required: false
23+
default: patch
24+
type: choice
25+
options:
26+
- 'patch'
27+
- 'minor'
28+
- 'major'
29+
30+
jobs:
31+
draft-a-release:
32+
runs-on: ubuntu-latest
33+
steps:
34+
35+
- uses: actions/checkout@v3
36+
37+
- name: check next version
38+
uses: anothrNick/[email protected]
39+
id: tag
40+
env:
41+
DRY_RUN: true
42+
WITH_V: true
43+
DEFAULT_BUMP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }}
44+
45+
- name: release-draft
46+
uses: release-drafter/[email protected]
47+
if: "!contains(github.event.head_commit.message, 'skip')"
48+
id: release
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
publish: ${{ github.event.inputs.publish }}
53+
prerelease: ${{ github.event.inputs.prerelease }}
54+
tag: ${{ steps.tag.outputs.new_tag }}
55+
56+
- name: check-version
57+
run: |
58+
echo "release it: ${{ github.event.inputs.prerelease }}"
59+
echo "out: ${{ steps.release.name }}"
60+
echo "tag: ${{ steps.release.outputs.tag_name }}"

0 commit comments

Comments
 (0)