mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-03 21:33:42 +00:00 
			
		
		
		
	ci: separate check-package job to check workflow (#330)
				
					
				
			This commit is contained in:
		
							parent
							
								
									883a7f1ebb
								
							
						
					
					
						commit
						2abb3cd1df
					
				
							
								
								
									
										31
									
								
								.github/workflows/check.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/check.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					name: Check
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [main]
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  check-package:
 | 
				
			||||||
 | 
					    name: Check Package
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4.1.6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Setup Node.js
 | 
				
			||||||
 | 
					        uses: actions/setup-node@v4.0.2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          node-version: latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Setup Yarn
 | 
				
			||||||
 | 
					        uses: threeal/setup-yarn-action@v2.0.0
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          version: stable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Check Format
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          yarn format
 | 
				
			||||||
 | 
					          git diff --exit-code HEAD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Check Lint
 | 
				
			||||||
 | 
					        run: yarn lint
 | 
				
			||||||
							
								
								
									
										25
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -5,31 +5,6 @@ on:
 | 
				
			|||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches: [main]
 | 
					    branches: [main]
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  check-package:
 | 
					 | 
				
			||||||
    name: Check Package
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - name: Checkout
 | 
					 | 
				
			||||||
        uses: actions/checkout@v4.1.6
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Setup Node.js
 | 
					 | 
				
			||||||
        uses: actions/setup-node@v4.0.2
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          node-version: latest
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Setup Yarn
 | 
					 | 
				
			||||||
        uses: threeal/setup-yarn-action@v2.0.0
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          version: stable
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Check Format
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          yarn format
 | 
					 | 
				
			||||||
          git diff --exit-code HEAD
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Check Lint
 | 
					 | 
				
			||||||
        run: yarn lint
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  test-package:
 | 
					  test-package:
 | 
				
			||||||
    name: Test Package
 | 
					    name: Test Package
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user