mirror of
				https://github.com/rbenv/ruby-build.git
				synced 2025-10-31 09:10:59 +01:00 
			
		
		
		
	Run script/mirror verify on GitHub Actions too
* So the shasums are checked in PRs.
This commit is contained in:
		
							parent
							
								
									25e52813b6
								
							
						
					
					
						commit
						964e83a039
					
				
					 2 changed files with 12 additions and 3 deletions
				
			
		
							
								
								
									
										11
									
								
								script/test
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								script/test
									
										
									
									
									
								
							|  | @ -1,13 +1,18 @@ | |||
| #!/usr/bin/env bash | ||||
| set -e | ||||
| set -x | ||||
| 
 | ||||
| STATUS=0 | ||||
| bats ${CI:+--tap} test || STATUS="$?" | ||||
| 
 | ||||
| if [ -n "$TRAVIS_COMMIT_RANGE" ]; then | ||||
|   COMMIT_RANGE="$TRAVIS_COMMIT_RANGE" | ||||
| fi | ||||
| 
 | ||||
| if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then | ||||
|   ./script/mirror update "$TRAVIS_COMMIT_RANGE" | ||||
| elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then | ||||
|   ./script/mirror verify "$TRAVIS_COMMIT_RANGE" | ||||
|   ./script/mirror update "$COMMIT_RANGE" | ||||
| elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] || [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then | ||||
|   ./script/mirror verify "$COMMIT_RANGE" | ||||
| fi | ||||
| 
 | ||||
| exit "$STATUS" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue