|
24 | 24 | run: | |
25 | 25 | # Make sure bundler is using the correct Ruby version |
26 | 26 | ruby -v |
27 | | - bundle install |
| 27 | + # yarn dependencies for site |
28 | 28 | yarn install |
29 | 29 | cd site && yarn install && cd .. |
30 | 30 |
|
@@ -73,22 +73,22 @@ jobs: |
73 | 73 | steps: |
74 | 74 | - uses: actions/checkout@v4 |
75 | 75 |
|
| 76 | + # For bundler to work with different Ruby versions |
| 77 | + - name: Set CI environment variable |
| 78 | + run: echo "CI=true" >> $GITHUB_ENV |
| 79 | + |
| 80 | + # Configure bundler before setup-ruby runs |
| 81 | + - name: Configure bundler |
| 82 | + run: | |
| 83 | + mkdir -p ~/.bundle |
| 84 | + echo 'BUNDLE_WITHOUT: "development"' > ~/.bundle/config |
| 85 | + |
76 | 86 | - name: Setup Ruby 3.0 |
77 | 87 | uses: ruby/setup-ruby@v1 |
78 | 88 | with: |
79 | 89 | ruby-version: "3.0" |
80 | 90 | bundler-cache: true |
81 | 91 |
|
82 | | - # For bundler to work with different Ruby versions |
83 | | - - name: Set CI environment variable |
84 | | - run: echo "CI=true" >> $GITHUB_ENV |
85 | | - |
86 | | - - name: Install dependencies |
87 | | - run: | |
88 | | - ruby -v |
89 | | - bundle config set --local without 'development' |
90 | | - bundle install |
91 | | -
|
92 | 92 | - name: Run tests |
93 | 93 | run: bin/test |
94 | 94 |
|
@@ -128,25 +128,22 @@ jobs: |
128 | 128 | steps: |
129 | 129 | - uses: actions/checkout@v4 |
130 | 130 |
|
131 | | - - name: Setup Ruby ${{ matrix.ruby }} |
132 | | - uses: ruby/setup-ruby@v1 |
133 | | - with: |
134 | | - ruby-version: ${{ matrix.ruby }} |
135 | | - bundler-cache: true |
136 | | - |
137 | 131 | # For bundler to work with different Ruby versions, we just need to set CI=true |
138 | 132 | # This will make our conditional Gemfile logic skip the Ruby version requirement |
139 | 133 | - name: Set CI environment variable |
140 | 134 | run: echo "CI=true" >> $GITHUB_ENV |
141 | | - |
142 | | - - name: Install dependencies |
| 135 | + |
| 136 | + # Configure bundler before setup-ruby runs |
| 137 | + - name: Configure bundler |
143 | 138 | run: | |
144 | | - # Make sure bundler is using the correct Ruby version |
145 | | - ruby -v |
146 | | - # Configure bundler |
147 | | - bundle config set --local without 'development' |
148 | | - # Install dependencies with the specific Rails version |
149 | | - bundle install |
| 139 | + mkdir -p ~/.bundle |
| 140 | + echo 'BUNDLE_WITHOUT: "development"' > ~/.bundle/config |
| 141 | +
|
| 142 | + - name: Setup Ruby ${{ matrix.ruby }} |
| 143 | + uses: ruby/setup-ruby@v1 |
| 144 | + with: |
| 145 | + ruby-version: ${{ matrix.ruby }} |
| 146 | + bundler-cache: true |
150 | 147 |
|
151 | 148 | - name: Run Ruby tests |
152 | 149 | run: bin/test |
@@ -182,7 +179,6 @@ jobs: |
182 | 179 |
|
183 | 180 | - name: Install dependencies |
184 | 181 | run: | |
185 | | - bundle install |
186 | 182 | cd site && yarn install |
187 | 183 | |
188 | 184 | - name: Export TypeScript types |
|
0 commit comments