Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
feat!: add, refactor features
Browse files Browse the repository at this point in the history
* feat!: add, refactor features

Signed-off-by: Josef Andersson <[email protected]>

Co-authored-by: Rickard Andersson <[email protected]>
  • Loading branch information
janderssonse and Rickard Andersson authored May 16, 2022
1 parent 0e31230 commit fba94e0
Show file tree
Hide file tree
Showing 129 changed files with 6,740 additions and 1,788 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
# Change these settings to your own preference
# The default settings was taken from the kotlin style guide, https://github.com/Kotlin/kotlin-style-guide/issues/38
indent_style = space
indent_size = 4
tab_width = 4
max_line_length = 120

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{kt,kts}]
#https://github.com/editorconfig/editorconfig/issues/412
ij_continuation_indent_size = 8

[{*.md,*.adoc}]
trim_trailing_whitespace = false
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

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

**Screenshots**
If applicable, add screenshots:
- OS: [e.g. Ubuntu]
- Version [e.g. 22]

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

---

**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.
41 changes: 41 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

# Pull Request Template

## Description

Please include a summary of the change and which issue is fixed or added. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #(issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Please delete options that are not relevant.

**Test Configuration**:
- A short description of your environment.

## Checklist

- [ ] I confirm that I wrote and/or have the right to submit the contents of my PR, by agreeing to the Developer Certificate of Origin (see [docs/CONTRIBUTING](../docs/CONTRIBUTING.adoc).
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] PR has an informative and human-readable title
- [ ] Changes are limited to a single goal (no scope creep)
- [ ] Code can be automatically merged (no conflicts)
28 changes: 28 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Commitlint
on: [workflow_call] # yamllint disable-line rule:truthy

jobs:
commitlint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 15.x

- name: Install dependencies
run: npm install -g @commitlint/config-conventional @commitlint/cli

- name: Commitlint Pull Requests
if: github.event_name == 'pull_request'
run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: Commitlint Master/Main
if: github.ref_name == 'master' || github.ref_name == 'main'
run: commitlint --from HEAD~1 --to HEAD --verbose
19 changes: 19 additions & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: DCO (--Sign-off)
on: [workflow_call] # yamllint disable-line rule:truthy

jobs:
signoff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Check DCO
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip3 install -U dco-check
dco-check
12 changes: 12 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: REUSE Compliance

on: [workflow_call] # yamllint disable-line rule:truthy

jobs:
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: MegaLinter
on: [workflow_call] # yamllint disable-line rule:truthy

jobs:
megalinter:
name: megalint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Run MegaLinter
id: ml
uses: megalinter/megalinter@v5

- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: MegaLinter reports
path: |
report
mega-linter.log
19 changes: 19 additions & 0 deletions .github/workflows/repolint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Repolint workflow
on: [workflow_call] # yamllint disable-line rule:truthy

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
repolinter:
name: repolint
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run Repolinter
uses: todogroup/repolinter-action@v1
with:
config_file: repolint.yml
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Gradle Clean Build
on: [workflow_call] # yamllint disable-line rule:truthyn: [push, pull_request}
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "adopt"

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: clean build
18 changes: 18 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: gradle-yapp-publisher-plugin workflow

on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
dco:
uses: ./.github/workflows/dco.yml
commitlint:
uses: ./.github/workflows/commitlint.yml
license:
uses: ./.github/workflows/license.yml
test:
uses: ./.github/workflows/test.yml
lint:
uses: ./.github/workflows/lint.yml
repolint:
uses: ./.github/workflows/repolint.yml
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ out/
.kotlintest
*.iml
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
!gradle-wrapper.jar

/report
9 changes: 9 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
PRINT_ALPACA: false
EMAIL_REPORTER: false
APPLY_FIXES: all

# Lint specifig settings
ENABLE: [KOTLIN, MARKDOWN, YAML, COPYPASTE]

COPYPASTE_JSCPD_ARGUMENTS: --ignore "build,report,LICENSES,.idea" --threshold "10"
66 changes: 37 additions & 29 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -1,52 +1,60 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: gradle-yapp-publisher-plugin
Source: https://github.com/svt/gradle-yapp-publisher-plugin

Files: *.pom
Copyright: 2021 Sveriges Television AB
Files: *.yml
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.asc
Copyright: 2021 Sveriges Television AB
Files: *.md
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.gpg
Copyright: 2021 Sveriges Television AB
Files: *.js
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.properties
Copyright: 2021 Sveriges Television AB
Files: *.adoc
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: .gitignore
Copyright: 2021 Sveriges Television AB
Files: .gitignore
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.kts
Copyright: 2021 Sveriges Television AB
License: CC0-1.0
Files: gradlew*
Copyright: 2007-2022 The original author or authors <[email protected]>
License: Apache-2.0

Files: gradle/*
Copyright: 2007-2022 The original author or authors <[email protected]>
License: Apache-2.0

Files: *.md
Copyright: 2021 Sveriges Television AB
Files: *.properties
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.adoc
Copyright: 2021 Sveriges Television AB
Files: *.editorconfig
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *.gradle.test
Copyright: 2021 Sveriges Television AB
Files: *.kts
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

# Third-party files.
Files: *.pom
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: **/build_template_kts
Copyright: 2022 Sveriges Television AB
License: CC0-1.0

Files: *gradlew*
Copyright: 2007-2020 The original author or authors <[email protected]>
License: Apache-2.0
Files: *.gpg
Copyright: 2022 Sveriges Television AB
License: CC-BY-NC-ND-4.0

Files: gradle/*
Copyright: 2007-2020 The original author or authors <[email protected]>
License: Apache-2.0
Files: *.asc
Copyright: 2022 Sveriges Television AB
License: CC-BY-NC-ND-4.0

Files: *gradle-wrapper.jar
Copyright: 2007-2020 The original author or authors <[email protected]>
License: Apache-2.0
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.0.1 - 2022-12-12

### Added
- Nothing

### Deprecated
- Nothing.

### Removed
- Nothing.

### Fixed
- Nothing.
Loading

0 comments on commit fba94e0

Please sign in to comment.