Adding action for linting (#51)
* Adding action for linting * Configuring eslint * Update lint.yml * Update lint.yml * Update lint.yml * adds yarn jest to package.json * test report * debugging tests * trying force exit * force exit * test1 * forceexit * using another reporter * jest debugging * separated lints & tests * test * Cleanup * Add /src/third-party, /ios, and /android to ignore list
This commit is contained in:
		
							parent
							
								
									f969e746f7
								
							
						
					
					
						commit
						0536a6afcf
					
				
					 4 changed files with 97 additions and 35 deletions
				
			
		
							
								
								
									
										34
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,34 @@
 | 
			
		|||
name: Lint
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  linting:
 | 
			
		||||
    name: Run linters
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check out Git repository
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
      - name: Yarn install
 | 
			
		||||
        run: yarn
 | 
			
		||||
      - name: Lint Reporter
 | 
			
		||||
        uses: wearerequired/lint-action@v2.2.0
 | 
			
		||||
        with:
 | 
			
		||||
          eslint: true
 | 
			
		||||
          prettier: true
 | 
			
		||||
      - name: Typescript & Lint check
 | 
			
		||||
        run: yarn lint
 | 
			
		||||
  testing:
 | 
			
		||||
    name: Run tests
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check out Git repository
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
      - name: Yarn install
 | 
			
		||||
        run: yarn
 | 
			
		||||
      - name: Run tests
 | 
			
		||||
        run: | 
 | 
			
		||||
          yarn test --forceExit
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue