mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 05:17:27 +08:00 
			
		
		
		
	Use the race detector when running automated tests.
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -38,5 +38,5 @@ jobs:
 | 
				
			|||||||
          go-version: "^1"
 | 
					          go-version: "^1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Run tests
 | 
					      - name: Run tests
 | 
				
			||||||
        run: go test ./...
 | 
					        run: go test -race ./...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,7 @@ fi
 | 
				
			|||||||
pushd ../../.. > /dev/null
 | 
					pushd ../../.. > /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Build and run owncast from source
 | 
					# Build and run owncast from source
 | 
				
			||||||
go build -o owncast main.go
 | 
					go build -race -o owncast main.go
 | 
				
			||||||
./owncast -database $TEMP_DB &
 | 
					./owncast -database $TEMP_DB &
 | 
				
			||||||
SERVER_PID=$!
 | 
					SERVER_PID=$!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user