-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from terraform-module/chore/update-deps
Chore/update deps
- Loading branch information
Showing
18 changed files
with
236 additions
and
395 deletions.
There are no files selected for viewing
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 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter | ||
_extends: .github |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# These settings are synced to GitHub by https://probot.github.io/apps/settings/ | ||
_extends: .github | ||
|
||
repository: | ||
# See https://developer.github.com/v3/repos/#edit for all available settings. | ||
name: terraform-aws-ecs-lambda | ||
description: "ℹ️ Deploy serverless function to AWS VPC." | ||
homepage: https://ivankatliarchuk.github.io | ||
topics: ivank, terraform, terraform-module, lambda, serverless | ||
private: false | ||
has_issues: true | ||
has_projects: false | ||
has_wiki: false | ||
has_downloads: false | ||
has_pages: true | ||
is_template: true | ||
default_branch: master | ||
allow_squash_merge: true | ||
allow_merge_commit: true | ||
allow_rebase_merge: true | ||
delete_branch_on_merge: true | ||
enable_automated_security_fixes: true | ||
enable_vulnerability_alerts: false | ||
|
||
branches: | ||
- name: master |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Configuration for https://github.com/probot/stale | ||
_extends: .github |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
name: linter | ||
# This workflow is triggered on pushes to the repository. | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
terraform-validate: | ||
name: code format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
# https://github.com/hashicorp/setup-terraform | ||
- uses: hashicorp/setup-terraform@v2 | ||
|
||
- name: Cache terraform folder | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./.terraform | ||
key: terraform | ||
|
||
- name: terraform fmt | ||
run: terraform fmt -check -recursive -diff | ||
continue-on-error: true | ||
|
||
- name: terraform init | ||
run: terraform init | ||
|
||
- name: terraform validate | ||
run: terraform validate | ||
|
||
tflint: | ||
name: "tflint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
name: Cache tflint plugin dir | ||
with: | ||
path: ~/.tflint.d/plugins | ||
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | ||
- uses: terraform-linters/setup-tflint@v2 | ||
name: setup tflint | ||
- name: init tflint | ||
run: tflint --init --config .tflint.hcl | ||
- name: run tflint | ||
run: tflint -f compact --config .tflint.hcl |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: 'validate-pr-title' | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
name: validate pr title | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Please look up the latest version from | ||
# https://github.com/amannn/action-semantic-pull-request/releases | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Configure which types are allowed. | ||
# Default: https://github.com/commitizen/conventional-commit-types | ||
types: | | ||
fix | ||
feat | ||
docs | ||
ci | ||
chore | ||
# Configure that a scope must always be provided. | ||
requireScope: false | ||
# If `subjectPattern` is configured, you can use this property to override | ||
# the default error message that is shown when the pattern doesn't match. | ||
# The variables `subject` and `title` can be used within the message. | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title "{title}" | ||
didn't match the configured pattern. Please ensure that the subject | ||
starts with an uppercase character. | ||
# For work-in-progress PRs you can typically use draft pull requests | ||
# from Github. However, private repositories on the free plan don't have | ||
# this option and therefore this action allows you to opt-in to using the | ||
# special "[WIP]" prefix to indicate this state. This will avoid the | ||
# validation of the PR title and the pull request checks remain pending. | ||
# Note that a second check will be reported if this is enabled. | ||
wip: true | ||
# When using "Squash and merge" on a PR with only one commit, GitHub | ||
# will suggest using that commit message instead of the PR title for the | ||
# merge commit, and it's easy to commit this by mistake. Enable this option | ||
# to also validate the commit message for one commit PRs. | ||
validateSingleCommit: false |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: release.draft | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
description: Is this a pre-release | ||
required: true | ||
default: true | ||
type: boolean | ||
publish: | ||
description: Publish release | ||
required: false | ||
default: false | ||
type: boolean | ||
bump: | ||
description: 'Bumping (#major, #minor or #patch)' | ||
required: false | ||
default: patch | ||
type: choice | ||
options: | ||
- 'patch' | ||
- 'minor' | ||
- 'major' | ||
|
||
jobs: | ||
draft-a-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: check next version | ||
uses: anothrNick/[email protected] | ||
id: tag | ||
env: | ||
DRY_RUN: true | ||
WITH_V: true | ||
DEFAULT_BUMP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }} | ||
|
||
- name: release-draft | ||
uses: release-drafter/[email protected] | ||
if: "!contains(github.event.head_commit.message, 'skip')" | ||
id: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
publish: ${{ github.event.inputs.publish }} | ||
prerelease: ${{ github.event.inputs.prerelease }} | ||
tag: ${{ steps.tag.outputs.new_tag }} | ||
|
||
- name: check-version | ||
run: | | ||
echo "release it: ${{ github.event.inputs.prerelease }}" | ||
echo "out: ${{ steps.release.name }}" | ||
echo "tag: ${{ steps.release.outputs.tag_name }}" |
Oops, something went wrong.