|
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,21 +73,16 @@ 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 | + |
76 | 80 | - name: Setup Ruby 3.0 |
77 | 81 | uses: ruby/setup-ruby@v1 |
78 | 82 | with: |
79 | 83 | ruby-version: "3.0" |
80 | 84 | bundler-cache: true |
81 | | - |
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 |
| 85 | + bundler-args: --without development |
91 | 86 |
|
92 | 87 | - name: Run tests |
93 | 88 | run: bin/test |
@@ -128,25 +123,17 @@ jobs: |
128 | 123 | steps: |
129 | 124 | - uses: actions/checkout@v4 |
130 | 125 |
|
| 126 | + # For bundler to work with different Ruby versions, we just need to set CI=true |
| 127 | + # This will make our conditional Gemfile logic skip the Ruby version requirement |
| 128 | + - name: Set CI environment variable |
| 129 | + run: echo "CI=true" >> $GITHUB_ENV |
| 130 | + |
131 | 131 | - name: Setup Ruby ${{ matrix.ruby }} |
132 | 132 | uses: ruby/setup-ruby@v1 |
133 | 133 | with: |
134 | 134 | ruby-version: ${{ matrix.ruby }} |
135 | 135 | bundler-cache: true |
136 | | - |
137 | | - # For bundler to work with different Ruby versions, we just need to set CI=true |
138 | | - # This will make our conditional Gemfile logic skip the Ruby version requirement |
139 | | - - name: Set CI environment variable |
140 | | - run: echo "CI=true" >> $GITHUB_ENV |
141 | | - |
142 | | - - name: Install dependencies |
143 | | - 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 |
| 136 | + bundler-args: --without development |
150 | 137 |
|
151 | 138 | - name: Run Ruby tests |
152 | 139 | run: bin/test |
@@ -182,7 +169,6 @@ jobs: |
182 | 169 |
|
183 | 170 | - name: Install dependencies |
184 | 171 | run: | |
185 | | - bundle install |
186 | 172 | cd site && yarn install |
187 | 173 | |
188 | 174 | - name: Export TypeScript types |
|
0 commit comments