Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump decidim from 0.24.3 to 0.26.8 #106

Merged
merged 10 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .ebextensions/03_precompile.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
commands:
01_nodejs:
command: "curl --silent --location https://rpm.nodesource.com/setup_16.x | sudo bash -"
02_yarn:
command: "wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && sudo yum install yarn -y"

container_commands:
01_install_webpack:
command: "npm install --save-dev webpack"
02_precompile:
command: "bundle exec rake assets:precompile"
30 changes: 30 additions & 0 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

linters:
ExtraNewline:
enabled: true

FinalNewline:
enabled: true

SpaceAroundErbTag:
enabled: true

AllowedScriptType:
enabled: true
allowed_types:
- text/javascript
- text/template

Rubocop:
enabled: true

rubocop_config:
AllCops:
DisabledByDefault: true

Style/StringLiterals:
EnforcedStyle: double_quotes

Layout/SpaceInsideHashLiteralBraces:
Enabled: true
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**/*{.,-}min.js
decidim-*/vendor/**/*.js
spec/decidim_dummy_app/**/*.js
development_app
**/node_modules/**
bundle.js
karma.conf.js
webpack.config.js
webpack.config.babel.js
entry.test.js
entry.js
*_manifest.js
coverage
decidim-dev/**/*/test/**/*.js
vendor/bundle
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@decidim"
}
22 changes: 14 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:

env:
RUBY_VERSION: 2.7.4
NODE_VERSION: 12.9.1
NODE_VERSION: 16.9.1

jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
if: "!startsWith(github.head_ref, 'chore/l10n')"
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
Expand All @@ -29,13 +28,20 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- run: npm ci
name: Install JS deps

- run: bundle exec rubocop -P
name: Lint Ruby files

- run: bundle exec mdl *.md
name: Lint Markdown files

- name: Lint and Rubocop
run: |
bundle exec rubocop -P
bundle exec erblint app/**/*.erb
- run: bundle exec erblint {decidim-module-catcomu_managers/,}app/{cells,views}/**/*.erb
name: Lint ERB files

- run: npm run stylelint
name: Lint SCSS files

- run: npm run lint
name: Lint JS files
23 changes: 9 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ on:

env:
RUBY_VERSION: 2.7.4
NODE_VERSION: 12.9.1

NODE_VERSION: 16.9.1
RAILS_ENV: test
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres

jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
services:
postgres:
image: postgres:11
ports:
- 5432:5432
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Expand All @@ -38,19 +39,13 @@ jobs:
- name: Setup & create Database
run: |
bundle exec rails db:create db:schema:load
env:
RAILS_ENV: test
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres

- name: Precompile assets
run: bundle exec rake assets:precompile
run: |
npm install
bundle exec rake assets:precompile
env:
RAILS_ENV: test

- name: Run RSpec
run: SIMPLECOV=1 CODECOV=1 bundle exec rspec
env:
RAILS_ENV: test
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity

/public/assets
.byebug_history
Expand All @@ -43,3 +45,7 @@ public/uploads
# Ignore .rspec-failures
.rspec-failures
.s3cfg

/public/decidim-packs
/public/packs
/public/packs-test
2 changes: 2 additions & 0 deletions .mdl_style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

exclude_rule "ol-prefix"

exclude_rule "ul-indent"

rule "no-trailing-punctuation", punctuation: ".,;:!"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.6
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM decidim/decidim:0.21.0
FROM decidim/decidim:0.26.8
29 changes: 15 additions & 14 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,31 @@ source "https://rubygems.org"

ruby RUBY_VERSION

DECIDIM_VERSION = { git: "https://github.com/Platoniq/decidim", branch: "temp/0.24" }.freeze
DECIDIM_VERSION = "0.26.8"

gem "decidim", DECIDIM_VERSION
gem "decidim-alternative_landing", git: "https://github.com/Platoniq/decidim-module-alternative_landing", branch: "main"
gem "decidim-consultations", DECIDIM_VERSION
# gem "decidim-initiatives", DECIDIM_VERSION
gem "catcomu-managers", path: "./catcomu-managers"
gem "decidim-civicrm", git: "https://github.com/Platoniq/decidim-module-civicrm", branch: "main"

gem "decidim-decidim_awesome", "~> 0.7.2"
gem "decidim-direct_verifications", git: "https://github.com/Platoniq/decidim-verifications-direct_verifications"
gem "decidim-navigation_maps", "~> 1.2.0"
gem "decidim-catcomu_managers", path: "./decidim-module-catcomu_managers"

gem "bootsnap", "~> 1.4"
gem "decidim-alternative_landing", git: "https://github.com/Platoniq/decidim-module-alternative_landing", branch: "release/0.26-stable"
gem "decidim-civicrm", git: "https://github.com/Platoniq/decidim-module-civicrm", branch: "release/0.26-stable"
gem "decidim-decidim_awesome", "~> 0.8.3"
gem "decidim-direct_verifications", git: "https://github.com/Platoniq/decidim-verifications-direct_verifications", branch: "release/0.26-stable"
gem "decidim-navigation_maps", git: "https://github.com/Platoniq/decidim-module-navigation_maps", branch: "release/0.26-stable"

gem "bootsnap", "~> 1.11.0"
gem "health_check"
gem "sentry-rails"
gem "sentry-ruby"

gem "puma", ">= 5.0.0"
gem "uglifier", "~> 4.1"

gem "faker", "~> 2.14"
gem "rspec"
gem "rubocop-faker"

group :development, :test do
gem "byebug", "~> 11.0", platform: :mri
gem "rubocop-faker"

gem "decidim-dev", DECIDIM_VERSION
end
Expand All @@ -40,11 +38,14 @@ group :development do
gem "listen", "~> 3.1"
gem "spring", "~> 2.0"
gem "spring-watcher-listen", "~> 2.0"
gem "web-console", "~> 3.5"
gem "web-console"
end

group :production do
gem "fog-aws"
gem "aws-sdk-s3", require: false
gem "fog-aws" # to remove once images migrated
gem "sentry-rails"
gem "sentry-ruby"
gem "sidekiq", "~> 6.0"
gem "sidekiq-cron"
end
Expand Down
Loading
Loading