Skip to content

Commit

Permalink
Upgrade to Debian Stable/Ubuntu LTS, and Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamineskola committed Jun 6, 2024
1 parent d9c7985 commit 912da6f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
bundle-audit:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -32,15 +32,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -50,7 +50,7 @@ jobs:
bundle exec rake bundle:audit
brakeman:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -74,15 +74,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -92,7 +92,7 @@ jobs:
bundle exec rake brakeman:check
spec-admin-controllers:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -116,15 +116,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -138,7 +138,7 @@ jobs:
bundle exec rake spec:controllers
spec-public-controllers:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -162,15 +162,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -184,7 +184,7 @@ jobs:
bundle exec rake spec:controllers
spec-jobs:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -208,15 +208,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -230,7 +230,7 @@ jobs:
bundle exec rake spec:jobs
spec-mailers:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -254,15 +254,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -276,7 +276,7 @@ jobs:
bundle exec rake spec
spec-models:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -300,15 +300,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -322,7 +322,7 @@ jobs:
bundle exec rake spec
spec-requests:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -346,15 +346,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -368,7 +368,7 @@ jobs:
bundle exec rake spec
spec-other:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -392,15 +392,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -414,7 +414,7 @@ jobs:
bundle exec rake spec
javascript:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -438,15 +438,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand All @@ -459,7 +459,7 @@ jobs:
bundle exec rake jasmine:ci
cucumber-admin:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -483,15 +483,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
bundle exec rake cucumber
cucumber-public:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -548,15 +548,15 @@ jobs:
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: "3.2"

- name: Setup gem cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ubuntu-22.04-gems-${{ hashFiles('/Gemfile.lock') }}
key: ubuntu-24.04-gems-${{ hashFiles('/Gemfile.lock') }}
restore-keys: |
ubuntu-22.04-gems-
ubuntu-24.04-gems-
- name: Setup
uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion docker/ruby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.0-bullseye
FROM ruby:3.2-bookworm

ENV BUNDLE_PATH=/bundle

Expand Down

0 comments on commit 912da6f

Please sign in to comment.