mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 21:58:32 +00:00 
			
		
		
		
	 ca07ab31f6
			
		
	
	ca07ab31f6
	
	
	
		
			
			* Add husky and lint-staged, run lint and test in precommit hook * Add CI for test and lint * Apply eslint fixes in precommit hook
		
			
				
	
	
		
			22 lines
		
	
	
		
			426 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			426 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Node CI
 | |
| 
 | |
| on: [push]
 | |
| 
 | |
| jobs:
 | |
|   test:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|     - uses: actions/checkout@v1
 | |
|     - name: Cache node modules
 | |
|       uses: actions/cache@v1
 | |
|       with:
 | |
|         path: node_modules
 | |
|         key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
 | |
|     - name: npm install, lint, and test
 | |
|       run: |
 | |
|         npm install
 | |
|         npm run lint
 | |
|         npm test
 | |
|       env:
 | |
|         CI: true
 |