generated from SmartOperatingBlock/kotlin-template-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9e72d19
Showing
26 changed files
with
1,001 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto eol=lf | ||
*.[cC][mM][dD] text eol=crlf | ||
*.[bB][aA][tT] text eol=crlf | ||
*.[pP][sS]1 text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Insert a clear description in order to enable us to reproduce the bug. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[FEAT]" | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe your feature request** | ||
A clear and concise description of what the problem is. | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
name: Build & Deploy | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '.gitignore' | ||
- '.mergify.yml' | ||
- 'CHANGELOG.md' | ||
- 'LICENSE' | ||
- 'README.md' | ||
- 'renovate.json' | ||
pull_request: | ||
|
||
jobs: | ||
validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
- name: Validate the Gradle Wrapper | ||
uses: gradle/[email protected] | ||
|
||
build: | ||
needs: | ||
- validation | ||
strategy: | ||
matrix: | ||
os: [ubuntu, macos, windows] | ||
java-version: [11, 17] | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: adopt | ||
- name: Run quality assurance and test with coverage | ||
run: ./gradlew clean check | ||
- name: CodeCov | ||
if: ${{ contains('Linux', runner.os) }} | ||
uses: codecov/[email protected] | ||
with: | ||
directory: "build/reports/jacoco" | ||
|
||
release-and-delivery: | ||
concurrency: | ||
# Allow only one release at a time. | ||
group: release-and-delivery-${{ github.event.number || github.ref }} | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release-status: ${{ env.release_status }} | ||
# Release only where secrets are available. | ||
if: >- | ||
!github.event.repository.fork | ||
&& ( | ||
github.event_name != 'pull_request' | ||
|| github.event.pull_request.head.repo.full_name == github.repository | ||
) | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: Release and container delivery | ||
uses: SmartOperatingBlock/[email protected] | ||
with: | ||
should-release: true | ||
release-command: | | ||
npm install | ||
npx semantic-release | ||
should-build-and-deliver-container: true | ||
container-registry-name: 'ghcr.io' | ||
container-registry-username: ${{ github.actor }} | ||
container-registry-password: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.DEPLOYMENT_TOKEN }} | ||
|
||
documentation-deploy: | ||
needs: | ||
- release-and-delivery | ||
runs-on: ubuntu-latest | ||
if: needs.release-and-delivery.outputs.release-status == 'released' | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Generate and deploy documenation | ||
uses: SmartOperatingBlock/[email protected] | ||
with: | ||
should-generate-code-documentation: true | ||
code-documentation-generation-command: ./gradlew dokkaHtml | ||
code-documentation-dst-folder: './build/dokka/html' | ||
code-documentation-site-folder: 'documentation/code-doc' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
success: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- validation | ||
- build | ||
- release-and-delivery | ||
- documentation-deploy | ||
if: >- | ||
always() && ( | ||
contains(join(needs.*.result, ','), 'failure') | ||
|| !contains(join(needs.*.result, ','), 'cancelled') | ||
) | ||
steps: | ||
- name: Verify that there were no failures | ||
run: ${{ !contains(join(needs.*.result, ','), 'failure') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
.DS_Store | ||
.idea/shelf | ||
/confluence/target | ||
/dependencies/repo | ||
/android.tests.dependencies | ||
/dependencies/android.tests.dependencies | ||
/dist | ||
/local | ||
/gh-pages | ||
/ideaSDK | ||
/clionSDK | ||
/android-studio/sdk | ||
out/ | ||
/tmp | ||
/intellij | ||
workspace.xml | ||
*.versionsBackup | ||
/idea/testData/debugger/tinyApp/classes* | ||
/jps-plugin/testData/kannotator | ||
/js/js.translator/testData/out/ | ||
/js/js.translator/testData/out-min/ | ||
/js/js.translator/testData/out-pir/ | ||
.gradle/ | ||
build/ | ||
bin/ | ||
!**/src/**/build | ||
!**/test/**/build | ||
*.iml | ||
!**/testData/**/*.iml | ||
.idea/remote-targets.xml | ||
.idea/libraries/Gradle*.xml | ||
.idea/libraries/Maven*.xml | ||
.idea/artifacts/PILL_*.xml | ||
.idea/artifacts/KotlinPlugin.xml | ||
.idea/modules | ||
.idea/runConfigurations/JPS_*.xml | ||
.idea/runConfigurations/PILL_*.xml | ||
.idea/runConfigurations/_FP_*.xml | ||
.idea/runConfigurations/_MT_*.xml | ||
.idea/libraries | ||
.idea/modules.xml | ||
.idea/gradle.xml | ||
.idea/compiler.xml | ||
.idea/inspectionProfiles/profiles_settings.xml | ||
.idea/.name | ||
.idea/artifacts/dist_auto_* | ||
.idea/artifacts/dist.xml | ||
.idea/artifacts/ideaPlugin.xml | ||
.idea/artifacts/kotlinc.xml | ||
.idea/artifacts/kotlin_compiler_jar.xml | ||
.idea/artifacts/kotlin_plugin_jar.xml | ||
.idea/artifacts/kotlin_jps_plugin_jar.xml | ||
.idea/artifacts/kotlin_daemon_client_jar.xml | ||
.idea/artifacts/kotlin_imports_dumper_compiler_plugin_jar.xml | ||
.idea/artifacts/kotlin_main_kts_jar.xml | ||
.idea/artifacts/kotlin_compiler_client_embeddable_jar.xml | ||
.idea/artifacts/kotlin_reflect_jar.xml | ||
.idea/artifacts/kotlin_stdlib_js_ir_* | ||
.idea/artifacts/kotlin_test_js_ir_* | ||
.idea/artifacts/kotlin_stdlib_wasm_* | ||
.idea/artifacts/kotlinx_atomicfu_runtime_* | ||
.idea/artifacts/kotlinx_cli_jvm_* | ||
.idea/jarRepositories.xml | ||
.idea/csv-plugin.xml | ||
.idea/libraries-with-intellij-classes.xml | ||
.idea/misc.xml | ||
.idea/protoeditor.xml | ||
.idea/kotlinc.xml | ||
.idea/vcs.xml | ||
.idea/checkstyle-idea.xml | ||
.idea/git_toolbox_prj.xml | ||
node_modules/ | ||
.rpt2_cache/ | ||
libraries/tools/kotlin-test-js-runner/lib/ | ||
local.properties | ||
buildSrcTmp/ | ||
distTmp/ | ||
outTmp/ | ||
/test.output | ||
/kotlin-native/dist | ||
kotlin-ide/ | ||
.vscode/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pull_request_rules: | ||
- name: Automatic PR Update | ||
conditions: | ||
- check-success=success | ||
actions: | ||
update: | ||
- name: rebase-merge working updates | ||
conditions: | ||
- author=renovate[bot] | ||
- label=dependencies | ||
- -draft | ||
- -conflict | ||
- check-success=success | ||
actions: | ||
merge: | ||
method: rebase |
Oops, something went wrong.