Skip to content

Commit

Permalink
Merge pull request #15 from terraform-module/chore/update-deps
Browse files Browse the repository at this point in the history
Chore/update deps
  • Loading branch information
ivankatliarchuk authored Jul 23, 2022
2 parents 282e552 + 5880f1b commit 8f35698
Show file tree
Hide file tree
Showing 18 changed files with 236 additions and 395 deletions.
51 changes: 0 additions & 51 deletions .chglog/CHANGELOG.tpl.md

This file was deleted.

10 changes: 0 additions & 10 deletions .chglog/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

53 changes: 0 additions & 53 deletions .github/CONTRIBUTING.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/FUNDING.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/release-drafter.yml
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
26 changes: 26 additions & 0 deletions .github/settings.yml
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
2 changes: 2 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Configuration for https://github.com/probot/stale
_extends: .github
52 changes: 52 additions & 0 deletions .github/workflows/linter.yml
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
34 changes: 0 additions & 34 deletions .github/workflows/main.yaml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/pr-title.yml
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
60 changes: 60 additions & 0 deletions .github/workflows/release.draft.yml
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 }}"
Loading

0 comments on commit 8f35698

Please sign in to comment.