-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
07a1dfe
commit 2f5527b
Showing
2 changed files
with
6 additions
and
112 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 |
---|---|---|
@@ -1,57 +1,31 @@ | ||
version: "2" | ||
prepare: | ||
fetch: | ||
- "https://raw.githubusercontent.com/internetee/style-guide/master/.rubocop-ruby.yml" | ||
- url: "https://raw.githubusercontent.com/internetee/style-guide/master/.rubocop-rails.yml" | ||
path: ".rubocop.yml" | ||
- "https://raw.githubusercontent.com/internetee/style-guide/master/ruby/.rubocop.yml" | ||
plugins: | ||
brakeman: | ||
enabled: true | ||
checks: | ||
mass_assign_permit!: | ||
enabled: false | ||
bundler-audit: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
count_threshold: 3 | ||
languages: | ||
ruby: | ||
mass_threshold: 100 | ||
javascript: | ||
mass_threshold: 100 | ||
- ruby | ||
- javascript | ||
eslint: | ||
enabled: true | ||
channel: eslint-5 | ||
fixme: | ||
enabled: true | ||
checks: | ||
TODO: | ||
enabled: false | ||
rubocop: | ||
enabled: true | ||
channel: rubocop-1-18-3 | ||
channel: rubocop-1-12-1 | ||
checks: | ||
Rubocop/Style/ClassAndModuleChildren: | ||
Rubocop/Bundler/OrderedGems: | ||
enabled: false | ||
checks: | ||
method-lines: | ||
config: | ||
threshold: 40 | ||
method-count: | ||
config: | ||
threshold: 25 | ||
exclude_patterns: | ||
- "app/models/version/" | ||
- "bin/" | ||
- "config/" | ||
- "db/" | ||
- "lib/core_monkey_patches/" | ||
- "lib/gem_monkey_patches/" | ||
- "lib/tasks/*" | ||
- "spec/" | ||
- "vendor/" | ||
- "CHANGELOG.md" | ||
- "babel.config.js" | ||
|
||
- "test/" |
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 |
---|---|---|
|
@@ -36,86 +36,6 @@ jobs: | |
- name: Run Brakeman | ||
run: bundle exec brakeman --quiet --skip-libs --exit-on-warn --ignore-config=.brakeman-ignore | ||
|
||
# test: | ||
# services: | ||
# postgres: | ||
# image: postgres:17 | ||
# ports: ["5432:5432"] | ||
# env: | ||
# POSTGRES_PASSWORD: password | ||
# POSTGRES_USERNAME: postgres | ||
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-20.04] | ||
# ruby: [ '3.2.0' ] | ||
# runs-on: ${{ matrix.os }} | ||
# continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} | ||
|
||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: ruby/setup-ruby@v1 | ||
# with: | ||
# ruby-version: ${{ matrix.ruby }} | ||
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
# - name: config bundler | ||
# run: | | ||
# bundle config set without 'development staging production' | ||
# bundle config set deployment '[secure]' | ||
# bundle env | ||
# head -n1 $(which bundle) | ||
|
||
# - name: Set ENV for codeclimate (pull_request) | ||
# run: | | ||
# git fetch --no-tags --prune --depth=1 origin +refs/heads/$GITHUB_HEAD_REF:refs/remotes/origin/$GITHUB_HEAD_REF | ||
# echo "GIT_BRANCH=$GITHUB_HEAD_REF" >> $GITHUB_ENV | ||
# echo "GIT_COMMIT_SHA=$(git rev-parse origin/$GITHUB_HEAD_REF)" >> $GITHUB_ENV | ||
# if: github.event_name == 'pull_request' | ||
|
||
# - name: Set ENV for codeclimate (push) | ||
# run: | | ||
# echo "GIT_BRANCH=$GITHUB_REF" >> $GITHUB_ENV | ||
# echo "GIT_COMMIT_SHA=$GITHUB_SHA" >> $GITHUB_ENV | ||
# if: github.event_name == 'push' | ||
|
||
# - name: Prepare CodeClimate | ||
# env: | ||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
# run: | | ||
# curl -LSs 'https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64' >./cc-test-reporter; | ||
# chmod +x ./cc-test-reporter | ||
# ./cc-test-reporter before-build | ||
|
||
# - name: Run Tests | ||
# env: | ||
# PG_DATABASE: postgres | ||
# PG_HOST: localhost | ||
# PG_USER: postgres | ||
# PG_PASSWORD: password | ||
# PG_PORT: ${{ job.services.postgres.ports[5432] }} | ||
# RAILS_ENV: test | ||
# COVERAGE: true | ||
# DISABLE_SPRING: 1 | ||
# run: | | ||
# cp config/application.yml.sample config/application.yml | ||
# cp config/database_ci.yml config/database.yml | ||
# bundle exec rake db:create | ||
# bundle exec rake db:migrate | ||
# bundle exec rake db:schema:load | ||
# bundle exec rake db:seed | ||
# bundle exec rspec spec | ||
|
||
# - name: Save coverage | ||
# run: ./cc-test-reporter format-coverage --output coverage/codeclimate.${{ matrix.ruby }}.json | ||
|
||
# - uses: actions/[email protected] | ||
# with: | ||
# name: coverage-${{ matrix.ruby }} | ||
# path: coverage/codeclimate.${{ matrix.ruby }}.json | ||
|
||
test: | ||
services: | ||
postgres: | ||
|