Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
enable CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
maity-mondeep-adjust committed Sep 19, 2024
1 parent dbf377c commit 91c5b4a
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @adjust/dashboard_backend
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Jira Ticket

Does the description include a link to the Jira Ticket?
- [ ] Yes
- [ ] No

Describe your pull-request about?
- [ ] Major [Make sure to add `#major` in the PR title]
- [ ] Minor [Make sure to add `#minor` in the PR title]
- [ ] Patch [It's default, if no `#major` and `#minor` found in PR title]

## Description

_Put your description(Jira ticket, detailed info, etc.) here_
4 changes: 4 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>adjust/renovate-config:dashboard.json5"]
}
22 changes: 22 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Continuous Integration

on:
workflow_dispatch:
push:
branches:
- 'enable_CI'
pull_request:
branches:
- 'master'

jobs:
continuous-integration:
uses: adjust/githubWorkflows/.github/workflows/[email protected]
with:
bundler_version: '2.1.4'
team_id: 'T026H0087'
secrets:
AUTOMATE_PIP_SSH_KEY: ${{ secrets.AUTOMATE_PIP_SSH_KEY }}
GITHUB_CHECKOUT_TOKEN: ${{ secrets.DASHBOARD_TEAM_GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.DASHBOARD_SLACK_WEBHOOK }}

20 changes: 20 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Mark and delete stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: 'This Pull Request has been marked as stale'
stale-pr-label: 'stale'
days-before-stale: 180
days-before-close: 30
exempt-issue-labels: 'no-stale'
67 changes: 67 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
AllCops:
TargetRubyVersion: 3.3
NewCops: enable
Exclude:
- 'db/schema.rb'
- 'bin/*'
- 'node_modules/**/*'
- 'vendor/**/*'
- 'log/**/*'
- 'tmp/**/*'

Layout/LineLength:
Max: 120

Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'test/**/*'
Max: 25

Metrics/MethodLength:
Max: 15

Metrics/ClassLength:
Max: 200

Metrics/ModuleLength:
Max: 300

Metrics/AbcSize:
Max: 20

Metrics/ParameterLists:
Max: 5

Metrics/PerceivedComplexity:
Max: 10

Style/FrozenStringLiteralComment:
Enabled: true

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/Documentation:
Enabled: true

Lint/AmbiguousBlockAssociation:
Enabled: true

Lint/UselessAssignment:
Enabled: true

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma

Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma

Style/HashSyntax:
EnforcedStyle: ruby19

Layout/IndentationConsistency:
Enabled: true

Style/NestedParenthesizedCalls:
Enabled: true
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ group :development, :test do
gem 'erubis'
gem 'test-unit', '~> 3.0'
end

gem 'rubocop', require: false

0 comments on commit 91c5b4a

Please sign in to comment.