Skip to content

Commit

Permalink
Upgrade to 0.25 (#1)
Browse files Browse the repository at this point in the history
* init upgrade module to decidim 0.25

* migrations instructions README

* add workflows and completing README

* fix: rubocop fixes

* fix: test_app now install migrations; rename flash translations references

* README documentation
  • Loading branch information
apuertadelaguila committed May 16, 2023
1 parent 4b9dbe7 commit 82802ad
Show file tree
Hide file tree
Showing 66 changed files with 3,843 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,26 @@
name: "[CI] Lint"

on:
push:
branches:
- main
pull_request:

env:
RUBY_VERSION: 2.7.5

jobs:
lint-report:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- run: bundle exec rubocop -P
name: Lint Ruby files
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,52 @@
name: "[CI] Test"

on:
push:
branches:
- main
pull_request:

env:
RUBY_VERSION: 2.7.5

jobs:
test-report:
runs-on: ubuntu-20.04

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: ${{ env.RUBY_VERSION }}
bundler-cache: true

- name: Setup Database
run: bundle exec rake test_app

- name: Run RSpec
run: bundle exec rspec

- uses: actions/upload-artifact@v2-preview
if: always()
with:
name: screenshots
path: ./spec/decidim_dummy_app/tmp/screenshots
29 changes: 29 additions & 0 deletions .gitignore
@@ -0,0 +1,29 @@
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status

# rspec failure tracking
.rspec-failures

# default test application
spec/decidim_dummy_app

# default development application
development_app

.idea
.rbenv-vars
.vscode
.byebug_history
*.gem
node_modules/
npm_debug.log
.rubocop-*
16 changes: 16 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,16 @@
inherit_from: https://raw.githubusercontent.com/decidim/decidim/release/0.26-stable/.rubocop.yml

AllCops:
Include:
- "**/*.rb"
- "**/*.rake"
- "**/*.ru"
- "**/Gemfile"
- "**/Rakefile"
Exclude:
- "development_app/**/*"
- "spec/decidim_dummy_app/**/*"
- "bin/**/*"
- "node_modules/**/*"
- "db/schema.rb"
- "vendor/**/*"
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
2.7.5
40 changes: 40 additions & 0 deletions Gemfile
@@ -0,0 +1,40 @@
# frozen_string_literal: true

source "https://rubygems.org"

ruby RUBY_VERSION

base_path = ""
base_path = "../" if File.basename(__dir__) == "development_app"
require_relative "#{base_path}lib/decidim/peertube/version"

DECIDIM_VERSION = Decidim::Peertube::DECIDIM_VERSION

gem "decidim", DECIDIM_VERSION
gem "decidim-peertube", path: "."

gem "bootsnap", "~> 1.4"

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

gem "faker", "~> 2.14"

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

gem "decidim-dev", DECIDIM_VERSION
end

group :development do
gem "letter_opener_web", "~> 1.3"
gem "listen", "~> 3.1"
gem "rubocop-faker"
gem "spring", "~> 2.0"
gem "spring-watcher-listen", "~> 2.0"
gem "web-console", "~> 3.5"
end

group :test do
gem "codecov", require: false
end

0 comments on commit 82802ad

Please sign in to comment.