summary refs log tree commit
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-05-10 11:24:19 -0700
committerJeremy Evans <code@jeremyevans.net>2022-05-10 15:09:39 -0700
commit67d2e0d3a2027f6c97166f960e327335c5620339 (patch)
treeef479a30a9908d7906360af3da29ef380b230bf1
parentb7d554a07d8d3f9791e3c253d7e42bfd37bff9fe (diff)
downloadrack-67d2e0d3a2027f6c97166f960e327335c5620339.tar.gz
Add a .ci.Gemfile for CI testing
This avoids potentially installing unnecessary dependencies.

Also, avoid gem update --system and bundler config/install.
-rw-r--r--.ci.gemfile8
-rw-r--r--.github/workflows/development.yml15
2 files changed, 12 insertions, 11 deletions
diff --git a/.ci.gemfile b/.ci.gemfile
new file mode 100644
index 00000000..9a62f512
--- /dev/null
+++ b/.ci.gemfile
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+source 'https://rubygems.org'
+
+gem "webrick"
+gem "minitest", "~> 5.0"
+gem "minitest-global_expectations"
+gem "rake"
diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml
index 98f975cd..885c5901 100644
--- a/.github/workflows/development.yml
+++ b/.github/workflows/development.yml
@@ -10,6 +10,8 @@ jobs:
         os: [ubuntu-latest, macos-latest]
         ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, jruby, truffleruby-head]
     runs-on: ${{matrix.os}}
+    env:
+      BUNDLE_GEMFILE: .ci.gemfile
     steps:
     - uses: actions/checkout@v2
 
@@ -26,12 +28,6 @@ jobs:
       if: matrix.os == 'macos-latest'
       run: brew install fcgi libmemcached
 
-    - name: Bundle install...
-      run: |
-        gem update --system
-        bundle config path vendor/bundle
-        bundle install
-
     - run: bundle exec rake
 
   external:
@@ -42,6 +38,8 @@ jobs:
         os: [ubuntu-latest, macos-latest]
         ruby: [2.6, 2.7]
     runs-on: ${{matrix.os}}
+    env:
+      BUNDLE_GEMFILE: .ci.gemfile
     steps:
     - uses: actions/checkout@v2
 
@@ -58,9 +56,4 @@ jobs:
       if: matrix.os == 'macos-latest'
       run: brew install libmemcached
 
-    - name: Bundle install...
-      run: |
-        bundle config path vendor/bundle
-        bundle install
-
     - run: bundle exec rake external