Skip to content

Commit

Permalink
refactor: update base project files
Browse files Browse the repository at this point in the history
  • Loading branch information
MVladislav committed Feb 22, 2024
1 parent 2668192 commit e6be8c0
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Auto detect text files and perform LF normalization
* text=auto

# adding github settings to show correct language
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
*.j2 linguist-detectable=true
*.md linguist-documentation
16 changes: 16 additions & 0 deletions .github/DISCUSSION_TEMPLATE/feature-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: "[Feature Request] "
labels: ["enhancement"]
body:
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what you would like to see.
validations:
required: true
- type: textarea
id: other
attributes:
label: Other
description: Add any other context or information about the feature request here.
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
blank_issues_enabled: false
contact_links:
- name: 🤔 I have a question or need support
url: https://github.com/MVladislav/ansible-cis-ubuntu-2204/discussions
about: This issue tracker is for bugs only, not general support questions. Please refer to our Discussions.
- name: 🚀 Feature Request
url: https://github.com/MVladislav/ansible-cis-ubuntu-2204/discussions/new?category=feature-requests
about: Remember to search for existing feature requests and "up-vote" any you like.
File renamed without changes.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
13 changes: 9 additions & 4 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ name: Ansible Lint

on:
push:
branches:
- main
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

jobs:
build:
name: Ansible Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# https://github.com/actions/checkout
- uses: actions/checkout@v4

# https://github.com/ansible/ansible-lint
- name: Run ansible-lint
uses: ansible-community/ansible-lint-action@main
uses: ansible/ansible-lint@main
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: Ansible Molecule Test

on:
push:
branches:
- main
# branches: [main, develop]
tags:
- "*"
pull_request:
branches: [main, develop]
workflow_dispatch:

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

jobs:
test:
name: Molecule Test
Expand All @@ -24,10 +28,12 @@ jobs:
molecule-os: ["ubuntu2204", "ubuntu2304"]

steps:
- uses: actions/checkout@v3
# https://github.com/actions/checkout
- uses: actions/checkout@v4

# https://github.com/actions/setup-python
- name: Set up Python ${{ matrix.python-version.version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version.version }}

Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
##### CI for use by github no need for action to be added
##### https://pre-commit.com/hooks.html
##### Inherited
ci:
autofix_prs: false
Expand Down Expand Up @@ -30,11 +31,8 @@ repos:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
# - id: no-commit-to-branch
# args: [--branch, main]

# General checks
- id: check-executables-have-shebangs
- id: trailing-whitespace
name: Trim Trailing Whitespace
description: This hook trims trailing whitespace.
Expand All @@ -44,6 +42,9 @@ repos:
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: mixed-line-ending

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
Expand Down
2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
jsonRecursiveSort: true
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 MVladislav
Copyright (c) 2024 MVladislav

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit e6be8c0

Please sign in to comment.