Skip to content

Commit

Permalink
Decidim 0.24 compatiblity upgrade (#62)
Browse files Browse the repository at this point in the history
* initial changes

* fix version views

* fix items call

* fix appraisal

* use legacy editor for 0.23

* allow prerelease checking

* relax specs for admin checker

* rebase latests changes

* downgrade missing gem

* add codemirror to legacy admin

* fix category and operation over hashtags

* remove repeated test

* update docs
  • Loading branch information
microstudi authored Apr 8, 2021
1 parent f9cf90a commit dec2992
Show file tree
Hide file tree
Showing 48 changed files with 2,677 additions and 2,220 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml → .github/workflows/test -23.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "[CI] Test"
name: "[CI] Test 0.23"

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
matrix:
os: [ubuntu]
ruby: [2.7]
decidim: [decidim-0.22, decidim-0.23, decidim-0.23.2]
decidim: [decidim-0.23, decidim-0.23.4]
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}

Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/test -24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "[CI] Test 0.24"

on:
push:
branches:
- master
pull_request:

jobs:
test-report:
strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: [2.7]
decidim: [decidim-0.24]
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}

services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# do not use cache as appraisal is not compatible with gems installed locally

- name: Install Ruby deps
run: |
gem install bundler:2.1.4
bundle install --jobs 4 --retry 3
- name: Install Appraisal
run: |
bundle exec appraisal install
- name: Setup Database
run: bundle exec appraisal ${{ matrix.decidim }} rake test_app

- name: Run RSpec
run: SIMPLECOV=1 CODECOV=1 bundle exec appraisal ${{ matrix.decidim }} rake

- uses: actions/upload-artifact@v2-preview
if: always()
with:
name: screenshots
path: ./spec/decidim_dummy_app/tmp/screenshots
Loading

0 comments on commit dec2992

Please sign in to comment.