mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 01:19:20 +08:00 
			
		
		
		
	ci: update the command to run tests on the s390x machine (#3995)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							bef80cd806
						
					
				
				
					commit
					e2940c8c03
				
			
							
								
								
									
										3
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@ -64,6 +64,7 @@ jobs:
 | 
			
		||||
        go env
 | 
			
		||||
        printf "\n\nSystem environment:\n\n"
 | 
			
		||||
        env
 | 
			
		||||
        printf "Git version: $(git version)\n\n"
 | 
			
		||||
        # Calculate the short SHA1 hash of the git commit
 | 
			
		||||
        echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
 | 
			
		||||
        echo "::set-output name=go_cache::$(go env GOCACHE)"
 | 
			
		||||
@ -137,7 +138,7 @@ jobs:
 | 
			
		||||
 | 
			
		||||
          # The environment is fresh, so there's no point in keeping accepting and adding the key.
 | 
			
		||||
          rsync -arz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --delete --exclude '.git' . caddy-ci@ci-s390x.caddyserver.com:/var/tmp/"$short_sha"
 | 
			
		||||
          ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t caddy-ci@ci-s390x.caddyserver.com "cd /var/tmp/$short_sha; CGO_ENABLED=0 /usr/local/go/bin/go test -v ./..."
 | 
			
		||||
          ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t caddy-ci@ci-s390x.caddyserver.com "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -v ./..."
 | 
			
		||||
          test_result=$?
 | 
			
		||||
 | 
			
		||||
          # There's no need leaving the files around
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user