Skip to content

Commit

Permalink
feat(master): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinkite committed May 24, 2022
0 parents commit 2dd3ba6
Show file tree
Hide file tree
Showing 147 changed files with 99,978 additions and 0 deletions.
119 changes: 119 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
root = true

# defaults
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120

# Bazel: https://bazel.build/
# https://github.com/bazelbuild/buildtools/blob/master/BUILD.bazel
[*.{bazel,bzl}]
indent_size = 4
indent_style = space

# CSS
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
# http://cssguidelin.es/#syntax-and-formatting
[*.css]
indent_size = 2
indent_style = space

# GNU make
# https://www.gnu.org/software/make/manual/html_node/Recipe-Syntax.html
[Makefile]
indent_style = tab

# Go
# https://golang.org/cmd/gofmt/
[*.go]
indent_style = tab

# GraphQL
# https://graphql.org/learn/
# https://prettier.io
[*.{gql,graphql}]
indent_size = 2
indent_style = space

# HTML
# https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
[*.{htm,html,svelte}]
indent_size = 2
indent_style = space

# Java
# https://google.github.io/styleguide/javaguide.html#s4.2-block-indentation
[*.java]
indent_size = 2
indent_style = space

# JavaScript, JSON, JSX, JavaScript Modules, TypeScript
# https://github.com/feross/standard
# https://prettier.io
[*.{js,json,jsx,mjs,ts,tsx}]
indent_size = 2
indent_style = space

# Kotlin
# https://android.github.io/kotlin-guides/style.html#indentation
[*.{kt,kts}]
indent_size = 4
indent_style = space

# LESS
# https://github.com/less/less-docs#less-standards
[*.less]
indent_size = 2
indent_style = space

# PHP
# http://www.php-fig.org/psr/psr-2/
[*.php]
indent_size = 4
indent_style = space

# Python
# https://www.python.org/dev/peps/pep-0008/#code-lay-out
[*.py]
indent_size = 4
indent_style = space

# Ruby
# http://www.caliban.org/ruby/rubyguide.shtml#indentation
[*.rb]
indent_size = 2
indent_style = space

# Rust
# https://github.com/rust-lang/rust/blob/master/src/doc/style/style/whitespace.md
[*.rs]
indent_size = 4
indent_style = space
insert_final_newline = false

# SASS
# https://sass-guidelin.es/#syntax--formatting
[*.{sass,scss}]
indent_size = 2
indent_style = space

# Shell
# https://google.github.io/styleguide/shell.xml#Indentation
[*.{bash,sh,zsh}]
indent_size = 2
indent_style = space

# TOML
# https://github.com/toml-lang/toml/tree/master/examples
[*.toml]
indent_size = 2
indent_style = space

# YAML
# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
[*.{yaml,yml}]
indent_size = 4
indent_style = space
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global rule:
* @indykite/indykite @marvinkite @maprokes @arxeiss
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: "\U0001F41B Bug report"
about: Create a report to help us improve

---

<!--
Thank you for reporting a possible bug in IndyKite.
Please fill in as much of the template below as you can.
Version: output of `go version`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify the affected core module name
If possible, please provide code that demonstrates the problem, keeping it as
simple and free of external dependencies as you can.
-->

* **Version**:
* **Platform**:
* **Subsystem**:

<!-- Please provide more details below this comment. -->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F680 Feature request"
about: Suggest an idea for this project

---

<!--
Thank you for suggesting an idea to make IndyKite better.
Please fill in as much of the template below as you're able.
-->

**Is your feature request related to a problem? Please describe.**
Please describe the problem you are trying to solve.

**Describe the solution you'd like**
Please describe the desired behavior.

**Describe alternatives you've considered**
Please describe alternative solutions or features you have considered.
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: ./CONTRIBUTING.md
-->

<!-- _Please make sure to review and check all of these items:_ -->

# Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] `make test` passes
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message follows [commit guidelines](./doc/guides/commit-message.md#commit-message-guidelines)

<!-- _NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open._ -->

## Affected core subsystem(s)

<!-- Please provide affected core subsystem(s). -->

## Description of change

<!-- Please provide a description of the change here. -->
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
commit-message:
prefix: chore
include: scope
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
day: monday
target-branch: master
open-pull-requests-limit: 10
commit-message:
prefix: chore
include: scope
21 changes: 21 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": [
"config:base",
"schedule:weekly",
":disableDependencyDashboard"
],
"semanticCommits": "enabled",
"postUpdateOptions": [
"gomodTidy",
"gomodNoMassage"
],
"commitMessageAction": "update",
"groupName": "everything",
"ignoreDeps": [],
"ignorePaths": [],
"force": {
"constraints": {
"go": "1.18"
}
}
}
24 changes: 24 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Changelog
concurrency: jarvis-changelog
on:
push:
branches:
- master

jobs:
release-please:
name: Prepare Release notes
runs-on: ubuntu-latest
steps:
- id: release-please
uses: GoogleCloudPlatform/release-please-action@v3
with:
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
release-type: go
package-name: jarvis-sdk-go
token: ${{ secrets.INDYKITE_PAT }}
extra-files: |
config/doc.go
identity/doc.go
ingest/doc.go
12 changes: 12 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
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@v4
34 changes: 34 additions & 0 deletions .github/workflows/go-lint-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Lint and Check
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**/*.go'
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v3

# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: ^1.18

- name: Run GolangCI-Lint Scanner
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version.
version: v1.46

# Optional: working directory, useful for monorepos
# working-directory: ./...

# Optional: golangci-lint command line arguments.
args: --timeout 2m00s

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
36 changes: 36 additions & 0 deletions .github/workflows/pr-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Build and test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
tags:
- '!*' # Do not execute on tags
paths-ignore:
- version.txt
- CHANGELOG.md
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18

- name: Check out code
uses: actions/checkout@v3

- name: Run Unit tests.
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
.idea

.private/

# Mac OS
.DS_Store
Loading

0 comments on commit 2dd3ba6

Please sign in to comment.