From 0139290199eaadf9e8aaff8c7fe4324b7f27538a Mon Sep 17 00:00:00 2001 From: Nikola Borska Date: Sun, 21 Aug 2022 17:35:24 +0200 Subject: [PATCH 1/3] ci: creating commit linter action --- .commitlintrc.yml | 2 ++ .github/PullRequestTemplate.md | 11 +++++++++++ .github/workflows/CommitLinter.yml | 11 +++++++++++ .github/workflows/ConventionalChangelog.yml | 0 4 files changed, 24 insertions(+) create mode 100644 .commitlintrc.yml create mode 100644 .github/PullRequestTemplate.md create mode 100644 .github/workflows/CommitLinter.yml create mode 100644 .github/workflows/ConventionalChangelog.yml diff --git a/.commitlintrc.yml b/.commitlintrc.yml new file mode 100644 index 0000000..fbd9ac3 --- /dev/null +++ b/.commitlintrc.yml @@ -0,0 +1,2 @@ +extends: +- "@commitlint/config-conventional" diff --git a/.github/PullRequestTemplate.md b/.github/PullRequestTemplate.md new file mode 100644 index 0000000..936ae97 --- /dev/null +++ b/.github/PullRequestTemplate.md @@ -0,0 +1,11 @@ +What type of PR is this? + +What this PR does / why we need it: + +Which issue(s) this PR fixes: + +Fixes # + +Special notes for your reviewer: + +Additional documentation e.g., enhancement proposals, usage docs, etc.: \ No newline at end of file diff --git a/.github/workflows/CommitLinter.yml b/.github/workflows/CommitLinter.yml new file mode 100644 index 0000000..af8a615 --- /dev/null +++ b/.github/workflows/CommitLinter.yml @@ -0,0 +1,11 @@ +name: Lint Commit Messages +on: [pull_request] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v5 diff --git a/.github/workflows/ConventionalChangelog.yml b/.github/workflows/ConventionalChangelog.yml new file mode 100644 index 0000000..e69de29 From ba25b9f2853f252087d06843e0d895ea43bb7e3e Mon Sep 17 00:00:00 2001 From: Nikola Borska Date: Tue, 30 Aug 2022 12:00:36 +0200 Subject: [PATCH 2/3] ci: creating drone config --- .drone.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d076245 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,44 @@ +kind: pipeline +type: docker +name: static check + +platform: + os: linux + arch: arm64 + +steps: + - name: flake8 code validation + image: python:3.9-alpine + commands: + - make flake + - name: static type checking + image: python:3.9-alpine + commands: + - make mypy + +trigger: + event: + include: + - push + - pull_request + +--- +kind: pipeline +type: docker +name: test + +platform: + os: linux + arch: arm64 + +steps: + - name: run tests + image: python:3.9-alpine + commands: + - make test + +trigger: + event: + include: + - push + - pull_request From da1524dba7f205f56d8d4136d1c7f48d4cc6247b Mon Sep 17 00:00:00 2001 From: Nikola Borska Date: Tue, 30 Aug 2022 12:03:40 +0200 Subject: [PATCH 3/3] ci: creating conventional changelog action WIP --- .github/workflows/ConventionalChangelog.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ConventionalChangelog.yml b/.github/workflows/ConventionalChangelog.yml index e69de29..6cb0907 100644 --- a/.github/workflows/ConventionalChangelog.yml +++ b/.github/workflows/ConventionalChangelog.yml @@ -0,0 +1,23 @@ +# name: Create Conventional Changelog +# on: [pull_request] + +# jobs: +# commitlint: +# runs-on: ubuntu-latest +# steps: +# - name: Conventional Changelog Action +# uses: TriPSs/conventional-changelog-action@v3 +# with: +# github-token: ${{ secrets.github_token }} +# git-message: 'chore(release): {version}' +# git-branch: (${{ github.ref }}) +# preset: 'angular' +# tag-prefix: 'v' +# output-file: 'MY_CUSTOM_CHANGELOG.md' +# release-count: '10' +# version-file: './my_custom_version_file.json' // or .yml, .yaml, .toml +# version-path: 'path.to.version' +# skip-on-empty: 'false' +# skip-version-file: 'false' +# skip-commit: 'false' +# git-branch: 'my-maintenance-branch' \ No newline at end of file