Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline with blueprint project #12

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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-helm-release
description: "ℹ️ App release with terraform and helm."
homepage: https://ivankatliarchuk.github.io
topics: ivank, terraform, terraform-module, helm, kubernetes
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
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@v2
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@v2
- uses: actions/cache@v2
name: Cache tflint plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v1
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
17 changes: 14 additions & 3 deletions .github/workflows/release.draft.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,49 @@
---
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@v2
- uses: actions/checkout@v3

- name: check next version
uses: anothrNick/github-tag-action@1.35.0
uses: anothrNick/github-tag-action@1.39.0
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/release-drafter@v5.15.0
uses: release-drafter/release-drafter@v5.20.0
if: "!contains(github.event.head_commit.message, 'skip')"
id: release
env:
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/release.yaml

This file was deleted.

12 changes: 4 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.3.0
hooks:
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-executables-have-shebangs
- id: pretty-format-json
args: ['--autofix', '--no-sort-keys', '--indent=4']
args: ['--autofix', '--no-sort-keys', '--indent=2']
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
Expand All @@ -16,13 +16,9 @@ repos:
- id: check-merge-conflict
- id: detect-aws-credentials
args: ['--allow-missing-credentials']
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.73.0
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_tflint
- repo: https://github.com/smian/pre-commit-makefile.git
rev: 261f8fb4b31dfdc05d1a1d7fbde1f1462ecde66d
hooks:
- id: makefile-doc
Loading