@@ -3,14 +3,14 @@ name: "[CI/CD]"
33on : [push]
44
55env :
6- NODE_VERSION : 16.9.1
7- RUBY_VERSION : 3.0.2
6+ NODE_VERSION : 22.14.0
7+ RUBY_VERSION : 3.3.4
88
99jobs :
1010 lints :
11- runs-on : ubuntu-20 .04
11+ runs-on : ubuntu-22 .04
1212 steps :
13- - uses : actions/checkout@v2.0.0
13+ - uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 1
1616 - uses : ruby/setup-ruby@v1
@@ -25,10 +25,10 @@ jobs:
2525 - run : bundle exec erblint app/**/*.erb
2626 name : Lint ERB files
2727 tests :
28- runs-on : ubuntu-20 .04
28+ runs-on : ubuntu-22 .04
2929 services :
3030 postgres :
31- image : postgres:11
31+ image : postgres:14
3232 ports : ["5432:5432"]
3333 options : >-
3434 --health-cmd pg_isready
4242 DATABASE_PASSWORD : postgres
4343 DATABASE_HOST : localhost
4444 steps :
45- - uses : actions/checkout@v2
45+ - uses : actions/checkout@v4
4646 with :
4747 fetch-depth : 1
4848 - uses : ruby/setup-ruby@v1
@@ -51,20 +51,24 @@ jobs:
5151 bundler-cache : true
5252 - name : Setup test_app
5353 run : bundle exec rake test_app
54+ - run : |
55+ rm -f ./spec/decidim_dummy_app/app/services/dummy_signature_handler.rb
56+ rm -f ./spec/decidim_dummy_app/app/services/dummy_sms_mobile_phone_validator.rb
57+ name: Remove Initiative-dependent dummy files
5458 - name : Rspec unit tests
5559 run : bundle exec rspec --exclude-pattern "spec/system/**/*_spec.rb"
5660 - name : Upload coverage reports to Codecov
5761 uses : codecov/codecov-action@v3
58- - uses : actions/upload-artifact@v2-preview
62+ - uses : actions/upload-artifact@v4
5963 if : always()
6064 with :
6165 name : screenshots
6266 path : ./spec/decidim_dummy_app/tmp/screenshots
6367 system_tests :
64- runs-on : ubuntu-20 .04
68+ runs-on : ubuntu-22 .04
6569 services :
6670 postgres :
67- image : postgres:11
71+ image : postgres:14
6872 ports : ["5432:5432"]
6973 options : >-
7074 --health-cmd pg_isready
7882 DATABASE_PASSWORD : postgres
7983 DATABASE_HOST : localhost
8084 steps :
81- - uses : actions/checkout@v2
85+ - uses : actions/checkout@v4
8286 with :
8387 fetch-depth : 1
8488 - uses : ruby/setup-ruby@v1
@@ -87,11 +91,15 @@ jobs:
8791 bundler-cache : true
8892 - name : Setup test_app
8993 run : bundle exec rake test_app
94+ - run : |
95+ rm -f ./spec/decidim_dummy_app/app/services/dummy_signature_handler.rb
96+ rm -f ./spec/decidim_dummy_app/app/services/dummy_sms_mobile_phone_validator.rb
97+ name: Remove Initiative-dependent dummy files
9098 - name : Rspec system tests
9199 run : bundle exec rspec --pattern "spec/system/**/*_spec.rb"
92100 - name : Upload coverage reports to Codecov
93101 uses : codecov/codecov-action@v3
94- - uses : actions/upload-artifact@v2-preview
102+ - uses : actions/upload-artifact@v4
95103 if : always()
96104 with :
97105 name : screenshots
0 commit comments