mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	ci: call yarn command from the corepack command (#134)
				
					
				
			This commit is contained in:
		
							parent
							
								
									a56fc88b91
								
							
						
					
					
						commit
						0a416228af
					
				
							
								
								
									
										4
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							@ -21,4 +21,6 @@ jobs:
 | 
			
		||||
        uses: threeal/yarn-install-action@v1.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Build Package
 | 
			
		||||
        run: yarn build && git diff --exit-code HEAD
 | 
			
		||||
        run: |
 | 
			
		||||
          corepack yarn build
 | 
			
		||||
          git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										12
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -21,13 +21,17 @@ jobs:
 | 
			
		||||
        uses: threeal/yarn-install-action@v1.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Check Yarn Version
 | 
			
		||||
        run: yarn set version stable && git diff --exit-code HEAD
 | 
			
		||||
        run: |
 | 
			
		||||
          corepack yarn set version stable
 | 
			
		||||
          git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
      - name: Check Format
 | 
			
		||||
        run: yarn format && git diff --exit-code HEAD
 | 
			
		||||
        run: |
 | 
			
		||||
          corepack yarn format
 | 
			
		||||
          git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
      - name: Check Lint
 | 
			
		||||
        run: yarn lint
 | 
			
		||||
        run: corepack yarn lint
 | 
			
		||||
 | 
			
		||||
  test-package:
 | 
			
		||||
    name: Test Package
 | 
			
		||||
@ -45,7 +49,7 @@ jobs:
 | 
			
		||||
        uses: threeal/yarn-install-action@v1.0.0
 | 
			
		||||
 | 
			
		||||
      - name: Test Package
 | 
			
		||||
        run: yarn test
 | 
			
		||||
        run: corepack yarn test
 | 
			
		||||
        env:
 | 
			
		||||
          NODE_OPTIONS: --experimental-vm-modules
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user