Create custom Github Actions for common steps (#27518)
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/lint-js.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/lint-js.yml
									
									
									
									
										vendored
									
									
								
							@@ -39,14 +39,8 @@ jobs:
 | 
			
		||||
      - name: Clone repository
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: Set up Node.js
 | 
			
		||||
        uses: actions/setup-node@v3
 | 
			
		||||
        with:
 | 
			
		||||
          cache: yarn
 | 
			
		||||
          node-version-file: '.nvmrc'
 | 
			
		||||
 | 
			
		||||
      - name: Install all yarn packages
 | 
			
		||||
        run: yarn --frozen-lockfile
 | 
			
		||||
      - name: Set up Javascript environment
 | 
			
		||||
        uses: ./.github/actions/setup-javascript
 | 
			
		||||
 | 
			
		||||
      - name: ESLint
 | 
			
		||||
        run: yarn lint:js --max-warnings 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user