diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8db5649..6027906 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,32 +20,34 @@ jobs: - ruby: "2.6" - ruby: "2.7" - ruby: "3.0" + db_gem_version: "~> 1.4" # fixes sqlite3 gem dependency issue - ruby: "3.1" - ruby: "3.2" - ruby: "3.3" ### TEST RAILS VERSIONS - ruby: "2.6" - env: - RAILS_VERSION: "5.2" + rails_version: "~> 5.2.0" - ruby: "2.6" - env: - RAILS_VERSION: "6.0" + rails_version: "~> 6.0.0" - ruby: "2.6" - env: - RAILS_VERSION: "6.1" + rails_version: "~> 6.1.0" - ruby: "3.3" - env: - RAILS_VERSION: "7.0" + rails_version: "~> 7.0.0" + db_gem_version: "~> 1.4" # fixes sqlite3 gem dependency issue - ruby: "3.3" - env: - RAILS_VERSION: "7.1" + rails_version: "~> 7.1.0" - ruby: "3.3" - env: - RAILS_VERSION: "7.2" + rails_version: "~> 7.2.0" steps: - uses: actions/checkout@v3 + - name: Set env variables + run: | + echo "RAILS_VERSION=${{ matrix.rails_version }}" >> "$GITHUB_ENV" + echo "DB_GEM=${{ matrix.db_gem }}" >> "$GITHUB_ENV" + echo "DB_GEM_VERSION=${{ matrix.db_gem_version }}" >> "$GITHUB_ENV" + - name: Install ruby uses: ruby/setup-ruby@v1 with: diff --git a/Gemfile b/Gemfile index eaa0bf5..e5eb07c 100644 --- a/Gemfile +++ b/Gemfile @@ -9,4 +9,4 @@ end gem 'rails', get_env("RAILS_VERSION") db_gem = get_env("DB_GEM") || "sqlite3" -gem db_gem +gem db_gem, get_env("DB_GEM_VERSION")