Add unit test workflow
w/ extra runs for tracker test
This commit is contained in:
		
							parent
							
								
									9fce1dc0b7
								
							
						
					
					
						commit
						ec6b6821b9
					
				
							
								
								
									
										23
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | |||||||
|  | name: Test | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   pull_request: | ||||||
|  |     branches: '*' | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - main | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   test: | ||||||
|  |     name: Run unit tests | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v4 | ||||||
|  |       - uses: actions/setup-go@v3 | ||||||
|  |         with: | ||||||
|  |           go-version-file: go.mod | ||||||
|  |           check-latest: true | ||||||
|  |       - name: Run unit tests | ||||||
|  |         run: | | ||||||
|  |           go test -v -p 1 ./... | ||||||
|  |           go test -v ./tracker -count 20 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user