mirror of
				https://github.com/sinatra/sinatra
				synced 2023-03-27 23:18:01 -04:00 
			
		
		
		
	Run tests for gems in different steps
This commit is contained in:
		
							parent
							
								
									3dd160bc9b
								
							
						
					
					
						commit
						0af1e1e929
					
				
					 2 changed files with 12 additions and 21 deletions
				
			
		
							
								
								
									
										19
									
								
								.actions.sh
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								.actions.sh
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,19 +0,0 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
set -ev
 | 
			
		||||
 | 
			
		||||
echo "Running sinatra tests..."
 | 
			
		||||
bundle exec rake
 | 
			
		||||
 | 
			
		||||
echo "Running sinatra-contrib tests..."
 | 
			
		||||
export BUILDIR=$GITHUB_WORKSPACE/sinatra-contrib
 | 
			
		||||
export BUNDLE_GEMFILE=$BUILDIR/Gemfile
 | 
			
		||||
cd $BUILDIR
 | 
			
		||||
bundle install --jobs=3 --retry=3
 | 
			
		||||
bundle exec rake
 | 
			
		||||
 | 
			
		||||
echo "Running rack-protection tests..."
 | 
			
		||||
export BUILDIR=$GITHUB_WORKSPACE/rack-protection
 | 
			
		||||
export BUNDLE_GEMFILE=$BUILDIR/Gemfile
 | 
			
		||||
cd $BUILDIR
 | 
			
		||||
bundle install --jobs=3 --retry=3
 | 
			
		||||
bundle exec rake
 | 
			
		||||
							
								
								
									
										14
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/test.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -24,8 +24,18 @@ jobs:
 | 
			
		|||
        bundler-cache: true
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: sudo apt-get install -y pandoc nodejs pkg-config libxml2-dev libxslt-dev
 | 
			
		||||
    - name: Run tests
 | 
			
		||||
      run: ./.actions.sh
 | 
			
		||||
    - name: Run sinatra tests
 | 
			
		||||
      run: bundle exec rake
 | 
			
		||||
    - name: Run sinatra-contrib tests
 | 
			
		||||
      run: |
 | 
			
		||||
        cd $GITHUB_WORKSPACE/sinatra-contrib
 | 
			
		||||
        bundle install --jobs=3 --retry=3
 | 
			
		||||
        bundle exec rake
 | 
			
		||||
    - name: Run rack-protection tests
 | 
			
		||||
      run: |
 | 
			
		||||
        cd $GITHUB_WORKSPACE/rack-protection
 | 
			
		||||
        bundle install --jobs=3 --retry=3
 | 
			
		||||
        bundle exec rake
 | 
			
		||||
    - uses: 8398a7/action-slack@v3
 | 
			
		||||
      with:
 | 
			
		||||
        status: ${{ job.status }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue