mirror of
				https://github.com/aleleba/create-node-ts-graphql-server.git
				synced 2025-10-31 14:11:13 -06:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			786 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			786 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Testing package
 | |
| 
 | |
| on:
 | |
|   pull_request:
 | |
|     branches: ['*']
 | |
| jobs:
 | |
|   test:
 | |
|     runs-on: ubuntu-latest
 | |
|     strategy:
 | |
|       matrix:
 | |
|         node-version: [16.x]
 | |
|         # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
 | |
|     steps:
 | |
|     - uses: actions/checkout@v3
 | |
|     - name: Use Node.js 16
 | |
|       uses: actions/setup-node@v3
 | |
|       with:
 | |
|         node-version: 16
 | |
|         cache: 'npm'
 | |
|         registry-url: https://registry.npmjs.org/
 | |
|     - run: npm ci
 | |
|     - run: npm test
 | |
|   test-build-package:
 | |
|     needs: test
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v3
 | |
|       - uses: actions/setup-node@v3
 | |
|         with:
 | |
|           node-version: 16
 | |
|           registry-url: https://registry.npmjs.org/
 | |
|       - run: npm ci
 | |
|       - run: npm run build |