forked from External/greenlight
		
	Switch CI to use ruby/setup-ruby action (#2659)
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							@@ -36,22 +36,12 @@ jobs:
 | 
				
			|||||||
      - name: Checkout
 | 
					      - name: Checkout
 | 
				
			||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Install Ruby ${{ env.RUBY_VERSION }}
 | 
					      - name: Ruby Setup + Bundle Install
 | 
				
			||||||
        uses: actions/setup-ruby@v1
 | 
					        uses: ruby/setup-ruby@v1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          ruby-version: ${{ env.RUBY_VERSION }}
 | 
					          ruby-version: ${{ env.RUBY_VERSION }}
 | 
				
			||||||
 | 
					          bundler-cache: true 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Bundle cache
 | 
					 | 
				
			||||||
        uses: actions/cache@v2
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          path: vendor/bundle
 | 
					 | 
				
			||||||
          key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
 | 
					 | 
				
			||||||
          restore-keys: |
 | 
					 | 
				
			||||||
            ${{ runner.os }}-gems-
 | 
					 | 
				
			||||||
      - name: Bundle install
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          bundle config path vendor/bundle
 | 
					 | 
				
			||||||
          bundle install --jobs 4 --retry 3
 | 
					 | 
				
			||||||
      - name: Setup database
 | 
					      - name: Setup database
 | 
				
			||||||
        run:  |
 | 
					        run:  |
 | 
				
			||||||
          bundler exec rails db:create RAILS_ENV=test
 | 
					          bundler exec rails db:create RAILS_ENV=test
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user