Skip to content

Commit

Permalink
Feature/codcov (#116)
Browse files Browse the repository at this point in the history
* Add codecov

* Nothing to see here
  • Loading branch information
IRus authored Mar 22, 2024
1 parent e976a8e commit 076f7d1
Show file tree
Hide file tree
Showing 45 changed files with 2,840 additions and 868 deletions.
101 changes: 101 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[*]
indent_size = 4
indent_style = space
charset = utf-8
insert_final_newline = true
end_of_line = lf
trim_trailing_whitespace = true
max_line_length = 100
tab_width = 4
ij_continuation_indent_size = 6
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides = 80,100
ij_wrap_on_typing = false

[*.kt]
ij_kotlin_align_multiline_parameters = true
ij_kotlin_align_multiline_parameters_in_calls = true
ij_kotlin_blank_lines_after_class_header = 0
ij_kotlin_blank_lines_around_block_when_branches = 0
ij_kotlin_wrap_first_method_in_call_chain = true
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_import_nested_classes = true
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
ij_kotlin_packages_to_use_import_on_demand = java.util.*
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
ij_kotlin_call_parameters_new_line_after_left_paren = true
ij_kotlin_call_parameters_right_paren_on_new_line = true
ij_kotlin_call_parameters_wrap = split_into_lines
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_class_annotation_wrap = split_into_lines
ij_kotlin_keep_indents_on_empty_lines = false
ij_kotlin_continuation_indent_for_chained_calls = false
ij_kotlin_lbrace_on_next_line = false
ij_kotlin_catch_on_new_line = false
ij_kotlin_else_on_new_line = false
ij_kotlin_while_on_new_line = false
ij_kotlin_finally_on_new_line = false
ij_kotlin_method_call_chain_wrap = split_into_lines
ij_kotlin_align_multiline_method_parentheses = false
ij_kotlin_assignment_wrap = normal
ij_kotlin_line_break_after_multiline_when_entry = true
ij_kotlin_wrap_elvis_expressions = 2
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
ij_kotlin_block_comment_add_space = false
ij_kotlin_block_comment_at_first_column = true
ij_kotlin_continuation_indent_for_expression_bodies = false
ij_kotlin_continuation_indent_in_argument_lists = false
ij_kotlin_continuation_indent_in_elvis = false
ij_kotlin_continuation_indent_in_if_conditions = false
ij_kotlin_continuation_indent_in_parameter_lists = false
ij_kotlin_continuation_indent_in_supertype_lists = false
ij_kotlin_enum_constants_wrap = off
ij_kotlin_extends_list_wrap = normal
ij_kotlin_field_annotation_wrap = split_into_lines
ij_kotlin_if_rparen_on_new_line = true
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
ij_kotlin_keep_blank_lines_before_right_brace = 0
ij_kotlin_keep_blank_lines_in_code = 1
ij_kotlin_keep_blank_lines_in_declarations = 1
ij_kotlin_keep_first_column_comment = true
ij_kotlin_keep_line_breaks = true
ij_kotlin_line_comment_add_space = false
ij_kotlin_line_comment_add_space_on_reformat = false
ij_kotlin_line_comment_at_first_column = true
ij_kotlin_method_annotation_wrap = split_into_lines
ij_kotlin_method_parameters_wrap = split_into_lines
ij_kotlin_parameter_annotation_wrap = off
ij_kotlin_space_after_comma = true
ij_kotlin_space_after_extend_colon = true
ij_kotlin_space_after_type_colon = true
ij_kotlin_space_before_catch_parentheses = true
ij_kotlin_space_before_comma = false
ij_kotlin_space_before_extend_colon = true
ij_kotlin_space_before_for_parentheses = true
ij_kotlin_space_before_if_parentheses = true
ij_kotlin_space_before_lambda_arrow = true
ij_kotlin_space_before_type_colon = false
ij_kotlin_space_before_when_parentheses = true
ij_kotlin_space_before_while_parentheses = true
ij_kotlin_spaces_around_additive_operators = true
ij_kotlin_spaces_around_assignment_operators = true
ij_kotlin_spaces_around_equality_operators = true
ij_kotlin_spaces_around_function_type_arrow = true
ij_kotlin_spaces_around_logical_operators = true
ij_kotlin_spaces_around_multiplicative_operators = true
ij_kotlin_spaces_around_range = false
ij_kotlin_spaces_around_relational_operators = true
ij_kotlin_spaces_around_unary_operator = false
ij_kotlin_spaces_around_when_arrow = true
ij_kotlin_variable_annotation_wrap = off
ij_kotlin_wrap_expression_body_functions = 2

8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
java-version: "21"
distribution: "liberica"
- run: ./gradlew check distTar
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: "Backend Application"
Expand All @@ -40,6 +44,10 @@ jobs:
run: yarn install
- working-directory: frontend
run: yarn run build
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: "Frontend Application"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- feature/*

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
27 changes: 27 additions & 0 deletions .readme/AGPLv3_Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# komok [![Build](https://github.com/Heapy/komok/actions/workflows/build.yml/badge.svg)](https://github.com/Heapy/komok/actions/workflows/build.yml)

## Local-First challenges

1. Represent every change in the system like event
2. Build event log
3. Use CRDT to merge events from different sources
4. Sync events between devices

## Project goals

- Help to collect information in single place and connect it;
- Help to collect information in a single place and connect it;
- Prioritize and schedule tasks (task can be anything, from learning and coding to resting and playing games);
- Help to focus by removing multiple sources of distraction, and consolidate them in single system that care about user, not profit.

Expand Down Expand Up @@ -147,3 +154,10 @@
- Distributed search engine
* [Hubzilla](https://zotlabs.org/page/hubzilla/hubzilla-project)
- Nomadic identity - **Research**

## License

This project is licensed under the terms of
the [GNU Affero General Public License v3.0](https://www.gnu.org/licenses/agpl-3.0.en.html).

<img src=".readme/AGPLv3_Logo.svg" width="150" alt="AGPLv3 Logo">
12 changes: 12 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
jacoco
application
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
Expand Down Expand Up @@ -65,3 +66,14 @@ dependencies {
testImplementation(libs.junit.jupiter)
runtimeOnly(libs.junit.platform.launcher)
}

tasks.jacocoTestReport {
reports {
xml.required = true
csv.required = false
}
}

tasks.check {
dependsOn(tasks.jacocoTestReport)
}
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# docker-compose -f docker-compose.dev.yml up -d
services:
komok_database:
image: postgres:16.1
image: postgres:16.2
container_name: komok_database
restart: always
mem_limit: 128m
Expand Down
Loading

0 comments on commit 076f7d1

Please sign in to comment.