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
				
					
				
			This commit is contained in:
		
							parent
							
								
									27e324dd89
								
							
						
					
					
						commit
						e2a552c816
					
				
							
								
								
									
										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
 | 
					        uses: threeal/yarn-install-action@v1.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build Package
 | 
					      - 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
 | 
					        uses: threeal/yarn-install-action@v1.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Check Yarn Version
 | 
					      - 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
 | 
					      - name: Check Format
 | 
				
			||||||
        run: yarn format && git diff --exit-code HEAD
 | 
					        run: |
 | 
				
			||||||
 | 
					          corepack yarn format
 | 
				
			||||||
 | 
					          git diff --exit-code HEAD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Check Lint
 | 
					      - name: Check Lint
 | 
				
			||||||
        run: yarn lint
 | 
					        run: corepack yarn lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test-package:
 | 
					  test-package:
 | 
				
			||||||
    name: Test Package
 | 
					    name: Test Package
 | 
				
			||||||
@ -45,7 +49,7 @@ jobs:
 | 
				
			|||||||
        uses: threeal/yarn-install-action@v1.0.0
 | 
					        uses: threeal/yarn-install-action@v1.0.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Test Package
 | 
					      - name: Test Package
 | 
				
			||||||
        run: yarn test
 | 
					        run: corepack yarn test
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          NODE_OPTIONS: --experimental-vm-modules
 | 
					          NODE_OPTIONS: --experimental-vm-modules
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user