extend functionality
This commit is contained in:
		
							parent
							
								
									9239fe16e6
								
							
						
					
					
						commit
						e9ceac2b4b
					
				
					 1 changed files with 20 additions and 4 deletions
				
			
		
							
								
								
									
										24
									
								
								.github/workflows/lint.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/lint.yaml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -18,6 +18,22 @@ on:
 | 
			
		|||
        required: false
 | 
			
		||||
        type: string
 | 
			
		||||
        default: yarn run test --ci --passWithNoTests --coverage
 | 
			
		||||
      LINT_SCRIPT:
 | 
			
		||||
        required: false
 | 
			
		||||
        type: string
 | 
			
		||||
        default: yarn run lint --max-warnings=0
 | 
			
		||||
      TYPE_CHECKING_SCRIPT:
 | 
			
		||||
        required: false
 | 
			
		||||
        type: string
 | 
			
		||||
        default: yarn run check-types
 | 
			
		||||
      INSTALL_SCRIPT:
 | 
			
		||||
        required: false
 | 
			
		||||
        type: string
 | 
			
		||||
        default: yarn install --immutable --inline-builds
 | 
			
		||||
      NODE_VERSION:
 | 
			
		||||
        required: false
 | 
			
		||||
        type: string
 | 
			
		||||
        default: "24"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  linting_type_checking:
 | 
			
		||||
| 
						 | 
				
			
			@ -32,7 +48,7 @@ jobs:
 | 
			
		|||
      - name: Set up Node.js and Corepack
 | 
			
		||||
        uses: actions/setup-node@v4
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: "22"
 | 
			
		||||
          node-version: ${{ inputs.NODE_VERSION }}
 | 
			
		||||
 | 
			
		||||
      - name: Enable Corepack
 | 
			
		||||
        run: |
 | 
			
		||||
| 
						 | 
				
			
			@ -40,7 +56,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: |
 | 
			
		||||
          yarn install --immutable --inline-builds
 | 
			
		||||
          ${{ inputs.INSTALL_SCRIPT }}
 | 
			
		||||
 | 
			
		||||
      - name: Setup repostitory
 | 
			
		||||
        run: |
 | 
			
		||||
| 
						 | 
				
			
			@ -48,11 +64,11 @@ jobs:
 | 
			
		|||
 | 
			
		||||
      - name: Lint source code (eslint)
 | 
			
		||||
        run: |
 | 
			
		||||
          yarn run lint --max-warnings=0
 | 
			
		||||
          ${{ inputs.LINT_SCRIPT }}
 | 
			
		||||
 | 
			
		||||
      - name: Static type checking (TypeScript)
 | 
			
		||||
        run: |
 | 
			
		||||
          yarn run check-types
 | 
			
		||||
          ${{ inputs.TYPE_CHECKING_SCRIPT }}
 | 
			
		||||
 | 
			
		||||
      - name: Run tests
 | 
			
		||||
        if: ${{ inputs.TESTS_ENABLED == true }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue