Skip to content

Commit

Permalink
Remove specific Gemfile and testing for Ruby 3.1.6
Browse files Browse the repository at this point in the history
Add it to the tests for all Rubies
  • Loading branch information
rosa committed Jan 28, 2025
1 parent d81c46b commit f914028
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 244 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- 3.1.6
- 3.2.0
- 3.2.4
- 3.3.0
Expand Down Expand Up @@ -64,42 +65,3 @@ jobs:
bin/rails db:setup
- name: Run tests
run: bin/rails test

tests-ruby-3-1-6:
name: Tests Ruby 3.1.6
runs-on: ubuntu-latest
strategy:
matrix:
database: [ mysql, postgres, sqlite ]
services:
mysql:
image: mysql:8.0.31
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 33060:3306
options: --health-cmd "mysql -h localhost -e \"select now()\"" --health-interval 1s --health-timeout 5s --health-retries 30
postgres:
image: postgres:15.1
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- 55432:5432
env:
TARGET_DB: ${{ matrix.database }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby and install specific gems for 3.1.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.6
- name: Install dependencies with specific Gemfile.lock
run: |
cp Gemfile.lock.ruby_3_1_6 Gemfile.lock
bundle install
- name: Setup test database
run: |
bin/rails db:setup
- name: Run tests
run: bin/rails test
205 changes: 0 additions & 205 deletions Gemfile.lock.ruby_3_1_6

This file was deleted.

0 comments on commit f914028

Please sign in to comment.