Skip to content

Commit

Permalink
add Continious Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
NimVek committed Jan 27, 2024
1 parent dee1361 commit a233334
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: NimVek

---

## Describe the bug

A clear and concise description of what the bug is.

## To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
1. Input '....'
1. See error

## Expected behavior

A clear and concise description of what you expected to happen.

## Logs & Screenshots

If applicable, add logs or screenshots to help explain your problem.

## Environment

- checkmk version: [e.g. 2.2.0p20]

## Additional context

Add any other context about the problem here.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: NimVek

---

## Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...]

## Describe the solution you'd like

A clear and concise description of what you want to happen.

## Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

## Additional context

Add any other context or screenshots about the feature request here.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
blank_issues_enabled: false
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Remove this section

Please have a look at
[our contribution documentation](https://github.com/NimVek/checkmk-packages/blob/main/.github/CONTRIBUTING.md)
before submitting your Pull Request.

Please note that the issue of this process apply to *all* pull requests, no
matter how small; if you don't do them, it's likely that nobody will even
notice your PR needs a review.

## Contributor Checklist:

- [ ] The associated issue is here:
#<!-- [Create a new one](https://github.com/NimVek/checkmk-packages/issues/new/choose)
and replace this comment with the ticket number. -->
- [ ] The changes pass minimal style checks (use: `pre-commit run --all-files` )
- [ ] I have updated the automated tests.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Continuous Integration

on :
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
lint:
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
CACHE_PRE_COMMIT: ~/.cache/pre-commit

name: Lint
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Caching
uses: actions/cache@v4
with:
path: |
${{ matrix.CACHE_PRE_COMMIT }}
key: lint-${{ runner.os }}-${{ hashFiles('**/.pre-commit-config.yaml')
}}
restore-keys: |
lint-${{ runner.os }}-
- name: Install pre-commit & dependencies
run: |
sudo apt-get install -y pre-commit shellcheck
- name: Lint
run: |
pre-commit run --all-files
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: check-case-conflict
- id: check-added-large-files
- id: check-shebang-scripts-are-executable
- id: pretty-format-json
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- id: shellcheck
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '4', --offset, '2', --colons, --width, '88']

0 comments on commit a233334

Please sign in to comment.