Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
4b9dbe7
commit 82802ad
Showing
66 changed files
with
3,843 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/**/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.