Skip to content

Commit

Permalink
Merge pull request #160 from democrateam/release_2.1.0
Browse files Browse the repository at this point in the history
Upgrade CONSUL DEMOCRACY to version 2.1.0
  • Loading branch information
microweb10 authored Mar 6, 2024
2 parents 09eac83 + 6d5c5e6 commit a5a1420
Show file tree
Hide file tree
Showing 1,184 changed files with 9,792 additions and 6,588 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
engines:
rubocop:
enabled: true
channel: rubocop-0-74
channel: rubocop-1-31-0
duplication:
enabled: true
config:
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public/tenants/*/sitemap.xml
public/assets/
public/machine_learning/data/
public/tenants/*/machine_learning/data/
node_modules/

# Bundler config, cache and gemsets
**/.bundle/
Expand Down
4 changes: 4 additions & 0 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@ linters:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Rails/HttpStatus:
Enabled: true
Exclude:
- app/views/dashboard/*
Rails/OutputSafety:
Enabled: false
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 50
- package-ecosystem: npm
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 50
6 changes: 2 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: linters
on:
pull_request:
workflow_dispatch:
on: [pull_request]

jobs:
linters:
Expand All @@ -17,7 +15,7 @@ jobs:
bundler-cache: true
- name: Run pronto
run: |
if [ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]; then
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} && ${{ github.actor }} != dependabot* ]]; then
PRONTO_PULL_REQUEST_ID="$(jq --raw-output .number "$GITHUB_EVENT_PATH")" PRONTO_GITHUB_ACCESS_TOKEN="${{ github.token }}" bundle exec pronto run -f github_status github_pr -c origin/${{ github.base_ref }}
else
bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
with:
bundler-cache: true
- name: Setup NPM
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
cache: "npm"
node-version-file: ".node-version"
- name: Install node packages
run: npm clean-install
- name: Copy secrets and database files
run: for i in config/*.example; do cp "$i" "${i/.example}"; done
- name: Setup database
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tmp/
/public/assets/
/public/machine_learning/data/
/public/tenants/*/machine_learning/data/
/node_modules/

# Bundler config, cache and gemsets
.bundle/
Expand Down
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ stages:
- lint

tests:
image: "ruby:3.0.6"
image: "ruby:3.1.4"
stage: test
services:
- postgres:10.10
Expand All @@ -23,6 +23,7 @@ tests:
- bundle --without development
- bundle exec rake db:setup
- bundle exec rake assets:precompile > /dev/null 2>&1
- npm clean-install
- bin/knapsack_pro_rspec
artifacts:
when: on_failure
Expand All @@ -34,7 +35,7 @@ tests:
# PRONTO_GITLAB_API_PRIVATE_TOKEN to your repository CI/CD settings
# giving it the value of the Personal Access Token
linters:
image: "ruby:3.0.6"
image: "ruby:3.1.4"
stage: lint
cache:
key: consul
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.18.2
1 change: 1 addition & 0 deletions .nvmrc
Loading

0 comments on commit a5a1420

Please sign in to comment.