mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-28 21:20:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			761 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			761 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: build-test
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|       - main
 | |
|     paths-ignore:
 | |
|       - '**.md'
 | |
|   pull_request:
 | |
|     paths-ignore:
 | |
|       - '**.md'
 | |
| jobs:
 | |
|   run:
 | |
|     name: Run
 | |
|     runs-on: ${{ matrix.operating-system }}
 | |
|     strategy:
 | |
|       matrix:
 | |
|         operating-system: [ubuntu-latest, windows-latest]
 | |
|     steps:
 | |
|       - name: Checkout
 | |
|         uses: actions/checkout@v2
 | |
| 
 | |
|       - name: Setup node 16
 | |
|         uses: actions/setup-node@v2
 | |
|         with:
 | |
|           node-version: 16
 | |
|           cache: npm
 | |
| 
 | |
|       - name: npm ci
 | |
|         run: npm ci
 | |
| 
 | |
|       - name: Lint
 | |
|         run: npm run format-check
 | |
| 
 | |
|       - name: npm test
 | |
|         run: npm test
 | |
| 
 | |
|       - name: audit packages
 | |
|         run: npm audit --audit-level=high
 | |
|         if: matrix.operating-system == 'ubuntu-latest'
 | 
