Skip to content

Commit

Permalink
update 0.27 branch and merge
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Sep 6, 2024
2 parents 5c921e5 + efd94e5 commit 2464aaa
Show file tree
Hide file tree
Showing 976 changed files with 19,952 additions and 6,064 deletions.
2 changes: 1 addition & 1 deletion .decidim-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.27.5
0.27.8
6 changes: 0 additions & 6 deletions .github/actions/module-rspec/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ inputs:
description: 'Node version'
default: '16.9.1'
required: false
processor_count:
description: "Number or parallel jobs to run"
default: "4"
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -75,5 +71,3 @@ runs:
name: Parallel tests
shell: "bash"
working-directory: ./spec/decidim_dummy_app/
env:
PARALLEL_TEST_PROCESSORS: " ${{ inputs.processor_count }}"
2 changes: 0 additions & 2 deletions .github/workflows/ci_accountability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-accountability
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -63,7 +62,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-admin
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -54,7 +53,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec['spec\/(?!system)']
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_admin_system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-admin
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec[^spec/system]
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-api
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -55,7 +54,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_assemblies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-assemblies
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_blogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-blogs
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -61,7 +60,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_budgets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-budgets
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -60,7 +59,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-comments
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_conferences.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-conferences
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_consultations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-consultations
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_core_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -54,7 +53,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec[^spec/lib]
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_core_system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
PARALLEL_TEST_PROCESSORS: 2
DECIDIM_SERVICE_WORKER_ENABLED: true
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_core_system_ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
PARALLEL_TEST_PROCESSORS: 2
DECIDIM_SERVICE_WORKER_ENABLED: true
TEST_SSL: true
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: |
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/ci_core_tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "[CI] Core (tasks tests)"
on:
push:
branches:
- develop
- release/*
- "*-stable"
pull_request:
branches-ignore:
- "chore/l10n*"
paths:
- "*"
- ".github/**"
- "decidim-api/**"
- "decidim-core/**"
- "decidim-dev/**"

env:
CI: "true"
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
main:
name: Tests
runs-on: ubuntu-20.04
if: "!startsWith(github.head_ref, 'chore/l10n')"
timeout-minutes: 60
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
RUBYOPT: '-W:no-deprecated'
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ./.github/actions/module-rspec
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec['spec/tasks\/(?!decidim_webpacker_tasks.rake)']
name: RSpec
working-directory: ${{ env.DECIDIM_MODULE }}
env:
SIMPLECOV: "true"
- uses: codecov/codecov-action@v3
name: Upload coverage
with:
token: ${{ env.CODECOV_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
flags: ${{ env.DECIDIM_MODULE }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: screenshots
path: ./spec/decidim_dummy_app/tmp/screenshots
if-no-files-found: ignore
73 changes: 73 additions & 0 deletions .github/workflows/ci_core_tasks_webpacker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "[CI] Core (webpacker tasks tests)"
on:
push:
branches:
- develop
- release/*
- "*-stable"
pull_request:
branches-ignore:
- "chore/l10n*"
paths:
- "*"
- ".github/**"
- "decidim-api/**"
- "decidim-core/**"
- "decidim-dev/**"

env:
CI: "true"
RUBY_VERSION: 3.0.2
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
main:
name: Tests
runs-on: ubuntu-20.04
if: "!startsWith(github.head_ref, 'chore/l10n')"
timeout-minutes: 60
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
RUBYOPT: '-W:no-deprecated'
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- uses: ./.github/actions/module-rspec
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec['spec/tasks/decidim_webpacker_tasks.rake']
name: RSpec
working-directory: ${{ env.DECIDIM_MODULE }}
env:
SIMPLECOV: "true"
- uses: codecov/codecov-action@v3
name: Upload coverage
with:
token: ${{ env.CODECOV_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
flags: ${{ env.DECIDIM_MODULE }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: screenshots
path: ./spec/decidim_dummy_app/tmp/screenshots
if-no-files-found: ignore
4 changes: 1 addition & 3 deletions .github/workflows/ci_core_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.9.1
DECIDIM_MODULE: decidim-core
PARALLEL_TEST_PROCESSORS: 2
CODECOV_TOKEN: bc15b944-6b42-420a-b3f9-a5a8fb214326

jobs:
Expand Down Expand Up @@ -53,10 +52,9 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ env.DECIDIM_MODULE }}
processor_count: ${{ env.PARALLEL_TEST_PROCESSORS }}
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
- run: bundle exec rake parallel:spec['spec\/(?!(system|lib))']
- run: bundle exec rake parallel:spec['spec\/(?!(system|lib|tasks))']
name: RSpec
working-directory: ${{ env.DECIDIM_MODULE }}
env:
Expand Down
Loading

0 comments on commit 2464aaa

Please sign in to comment.