chore: updated ci workflow to handle pnpm
This commit is contained in:
		
							parent
							
								
									da17696293
								
							
						
					
					
						commit
						a77a82f5a2
					
				
							
								
								
									
										27
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -7,32 +7,21 @@ jobs: | |||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |       - uses: actions/checkout@v3 | ||||||
|         uses: actions/checkout@master |       - run: corepack enable | ||||||
|         with: |       - uses: actions/setup-node@v3 | ||||||
|           fetch-depth: 0 |  | ||||||
| 
 |  | ||||||
|       - name: Setup node env |  | ||||||
|         uses: actions/setup-node@v3.0.0 |  | ||||||
|         with: |         with: | ||||||
|           node-version: 16 |           node-version: 16 | ||||||
| 
 |           cache: 'pnpm' | ||||||
|       - name: Cache node_modules |  | ||||||
|         uses: actions/cache@v2 |  | ||||||
|         with: |  | ||||||
|           path: ~/.npm |  | ||||||
|           key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |  | ||||||
|           restore-keys: | |  | ||||||
|             ${{ runner.os }}-node- |  | ||||||
| 
 | 
 | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: npm ci |         run: pnpm i | ||||||
| 
 | 
 | ||||||
|       - name: Run linters |       - name: Run linters | ||||||
|         run: npm run lint |         run: pnpm lint | ||||||
| 
 | 
 | ||||||
|       - name: Run unit test |       - name: Run unit test | ||||||
|         run: npm run test |         run: pnpm test | ||||||
| 
 | 
 | ||||||
|       - name: Build the app |       - name: Build the app | ||||||
|         run: npm run build |         run: pnpm build | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user