decidim-microsoft 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f906cdaef805b106d563c2fbe735ce54a28cfdb90526bde2dc90314a2225990c
4
+ data.tar.gz: bc4d2e62f389c6ac4256aebb4f2f9822509eacdf3e72da3c6224d2901ee3cf00
5
+ SHA512:
6
+ metadata.gz: 3f302fb7f59a8d3ca7199ca07298f0ccce3bbaae39bbf5149c54dc179a7185fbddab6c786dacd1b9738aa3289d649650c853b703c38e5e09fbfae167e6cf72d2
7
+ data.tar.gz: ea1cccead4f86c456df9a4a05d9273036b948e7d21bc21602cdbdfa1082708ee4de10457277d0fd62931dba463941dd6b668a224063a10c45df3e99d31119948
@@ -0,0 +1,26 @@
1
+ name: "[CI] Lint"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ env:
10
+ RUBY_VERSION: 2.7.6
11
+
12
+ jobs:
13
+ lint-report:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ with:
18
+ fetch-depth: 1
19
+
20
+ - uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ env.RUBY_VERSION }}
23
+ bundler-cache: true
24
+
25
+ - run: bundle exec rubocop -P
26
+ name: Lint Ruby files
@@ -0,0 +1,63 @@
1
+ name: "[CI] Test"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ env:
10
+ RUBY_VERSION: 2.7.6
11
+
12
+ jobs:
13
+ test-report:
14
+ runs-on: ubuntu-latest
15
+
16
+ services:
17
+ postgres:
18
+ image: postgres:11
19
+ ports: ["5432:5432"]
20
+ options: >-
21
+ --health-cmd pg_isready
22
+ --health-interval 10s
23
+ --health-timeout 5s
24
+ --health-retries 5
25
+ env:
26
+ POSTGRES_PASSWORD: postgres
27
+ env:
28
+ DATABASE_USERNAME: postgres
29
+ DATABASE_PASSWORD: postgres
30
+ DATABASE_HOST: localhost
31
+
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ with:
35
+ fetch-depth: 1
36
+
37
+ - uses: ruby/setup-ruby@v1
38
+ with:
39
+ ruby-version: ${{ env.RUBY_VERSION }}
40
+ bundler-cache: true
41
+
42
+ - name: Setup Database
43
+ run: bundle exec rake test_app
44
+
45
+ - name: Run RSpec without login button
46
+ run: bundle exec rspec
47
+ env:
48
+ SIMPLECOV: 1
49
+ CODECOV: 1
50
+ AZURE_CLIENT_ID:
51
+
52
+ - name: Run RSpec with login button
53
+ run: bundle exec rspec
54
+ env:
55
+ SIMPLECOV: 1
56
+ CODECOV: 1
57
+ AZURE_CLIENT_ID: dummy
58
+
59
+ - uses: actions/upload-artifact@v2-preview
60
+ if: always()
61
+ with:
62
+ name: screenshots
63
+ path: ./spec/decidim_dummy_app/tmp/screenshots
data/.gitignore ADDED
@@ -0,0 +1,27 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # rspec failure tracking
14
+ .rspec-failures
15
+
16
+ # default test application
17
+ spec/decidim_dummy_app
18
+
19
+ # default development application
20
+ development_app
21
+
22
+ .rbenv-vars
23
+ .vscode
24
+ .byebug_history
25
+ *.gem
26
+ node_modules/
27
+ npm_debug.log
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - .rubocop_ruby.yml
3
+ - .rubocop_rails.yml
@@ -0,0 +1,87 @@
1
+ require: rubocop-rails
2
+
3
+ Rails:
4
+ Enabled: true
5
+
6
+ Rails/ActionFilter:
7
+ Include:
8
+ - app/controllers/**/*.rb
9
+
10
+ Rails/ContentTag:
11
+ Enabled: false
12
+
13
+ Rails/CreateTableWithTimestamps:
14
+ Enabled: false
15
+
16
+ Rails/EnumUniqueness:
17
+ Include:
18
+ - app/models/**/*.rb
19
+
20
+ Rails/Exit:
21
+ Include:
22
+ - app/**/*.rb
23
+ - config/**/*.rb
24
+ - lib/**/*.rb
25
+ Exclude:
26
+ - lib/**/*.rake
27
+
28
+ Rails/FindBy:
29
+ Include:
30
+ - "**/*.rb"
31
+
32
+ Rails/FindEach:
33
+ Include:
34
+ - app/models/**/*.rb
35
+
36
+ Rails/HasAndBelongsToMany:
37
+ Include:
38
+ - app/models/**/*.rb
39
+
40
+ Rails/HasManyOrHasOneDependent:
41
+ Include:
42
+ - app/models/**/*.rb
43
+
44
+ Rails/InverseOf:
45
+ Enabled: false
46
+
47
+ Rails/LexicallyScopedActionFilter:
48
+ Include:
49
+ - app/controllers/**/*.rb
50
+
51
+ Rails/NotNullColumn:
52
+ Enabled: false
53
+
54
+ Rails/Output:
55
+ Include:
56
+ - app/**/*.rb
57
+ - config/**/*.rb
58
+ - db/**/*.rb
59
+ - lib/**/*.rb
60
+ Exclude:
61
+ - db/seeds.rb
62
+ Rails/OutputSafety:
63
+ Enabled: false
64
+
65
+ Rails/Pluck:
66
+ Enabled: false
67
+
68
+ Rails/RakeEnvironment:
69
+ Enabled: false
70
+
71
+ Rails/ReadWriteAttribute:
72
+ Include:
73
+ - app/models/**/*.rb
74
+
75
+ Rails/ReversibleMigration:
76
+ Enabled: false
77
+
78
+ Rails/ScopeArgs:
79
+ Include:
80
+ - app/models/**/*.rb
81
+
82
+ Rails/SkipsModelValidations:
83
+ Enabled: true
84
+
85
+ Rails/Validation:
86
+ Include:
87
+ - app/models/**/*.rb