Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmook committed Jul 30, 2021
0 parents commit 31e9eb5
Show file tree
Hide file tree
Showing 47 changed files with 2,736 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
root = true

[*]
charset = utf-8
indent_style = space
insert_final_newline = true
max_line_length = 145
indent_size = 4
trim_trailing_whitespace = true

[*.gradle]
ij_continuation_indent_size = 8

[{*.kt, *.kts}]
ij_continuation_indent_size = 8
ij_kotlin_assignment_wrap = normal
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 = on_every_item
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_continuation_indent_for_chained_calls = false
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_extends_list_wrap = normal
ij_kotlin_if_rparen_on_new_line = 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_method_call_chain_wrap = normal
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
ij_kotlin_method_parameters_wrap = on_every_item
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_imports_layout = *

[*.md]
trim_trailing_whitespace = false
max_line_length = 80
147 changes: 147 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Android CI

on:
push:
branches:
- main
- orbit/main
- feature/**
tags:
- '**'
pull_request:
branches:
- main
- orbit/main
- feature/**

jobs:
static-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: gradle cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: gradle wrapper cache
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/dists
key: ${{ runner.os }}-gradlewrapper

- name: Detekt
run: ./gradlew detekt

- name: Markdown lint
run: ./gradlew markdownlint

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: gradle cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: gradle wrapper cache
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/dists
key: ${{ runner.os }}-gradlewrapper

- name: Lint
run: ./gradlew lint

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: gradle cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: gradle wrapper cache
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/dists
key: ${{ runner.os }}-gradlewrapper

- name: konan cache
uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan

- name: Unit tests
run: ./gradlew check -xlint

- name: Upload test artifacts
if: failure()
uses: actions/upload-artifact@master
with:
name: test-results
path: '**/build/reports/tests/**'

build:
needs: [ static-checks, lint, unit-tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: gradle cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: gradle wrapper cache
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/dists
key: ${{ runner.os }}-gradlewrapper

- name: konan cache
uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan

- name: Build
run: ./gradlew clean assemble -xassembleDebug
23 changes: 23 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Validate Gradle Wrapper"

on:
push:
branches:
- main
- orbit/main
- feature/**
tags:
- '*'
pull_request:
branches:
- main
- orbit/main
- feature/**

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
Loading

0 comments on commit 31e9eb5

Please sign in to comment.