88 - " *-stable"
99 pull_request :
1010
11- env :
12- RUBY_VERSION : 3.2.6
13-
1411jobs :
1512 test-report :
1613 runs-on : ubuntu-latest
1714
15+ env :
16+ BUNDLE_GEMFILE : ${{ github.workspace }}/decidim-ldap/Gemfile
17+ DATABASE_USERNAME : postgres
18+ DATABASE_PASSWORD : postgres
19+ DATABASE_HOST : localhost
20+
1821 services :
1922 postgres :
20- image : postgres:11
23+ image : postgres:14
2124 ports : ["5432:5432"]
2225 options : >-
2326 --health-cmd pg_isready
@@ -26,53 +29,28 @@ jobs:
2629 --health-retries 5
2730 env :
2831 POSTGRES_PASSWORD : postgres
29- env :
30- DATABASE_USERNAME : postgres
31- DATABASE_PASSWORD : postgres
32- DATABASE_HOST : localhost
32+
3333 steps :
3434 - uses : actions/checkout@v4
3535 with :
3636 fetch-depth : 1
3737
38- - uses : ruby/setup-ruby@master
38+ - uses : ruby/setup-ruby@v1
3939 with :
40- ruby-version : ${{ env.RUBY_VERSION }}
41-
42- - name : Recover Ruby dependency cache
43- uses : actions/cache@v4
44- with :
45- path : ./vendor/bundle
46- key : ${{ runner.OS }}-rubydeps-${{ hashFiles('Gemfile.lock') }}
47- restore-keys : |
48- ${{ runner.OS }}-rubydeps-${{ env.cache-name }}-
49- ${{ runner.OS }}-rubydeps-
50- ${{ runner.OS }}-
51-
52- - name : Set bundle local config vendor/bundle path
53- run : bundle config set --local path 'vendor/bundle'
54-
55- - name : Install Ruby deps
56- uses : nick-invision/retry@v3
57- with :
58- timeout_minutes : 10
59- max_attempts : 3
60- retry_on : error
61- command : |
62- cd decidim-ldap
63- bundle install --jobs 4 --retry 3
40+ ruby-version-file : .ruby-version
41+ bundler-cache : true
6442
6543 - name : Generate ldap test_app
6644 run : |
67- sudo apt update && sudo apt install imagemagick
45+ sudo apt update && sudo apt install -y imagemagick
6846 cd decidim-ldap
6947 bundle exec rake test_app
7048 cd spec/decidim_dummy_app/
7149 bundle exec rails decidim_ldap:install:migrations
7250 RAILS_ENV=test bundle exec rails db:migrate
7351
7452 - name : Run RSpec
75- uses : nick-invision /retry@v3
53+ uses : nick-fields /retry@v3
7654 with :
7755 timeout_minutes : 10
7856 max_attempts : 3
0 commit comments