mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 05:43:42 +00:00 
			
		
		
		
	ci: add check-package job in test workflow (#118)
				
					
				
			* ci: move check steps to `check-package` job in `test` workflow * ci(build): merge check differences step to bundle package step * ci(test): check Yarn version in the `check-package` job
This commit is contained in:
		
							parent
							
								
									3d7ddb3fa0
								
							
						
					
					
						commit
						19dbdac998
					
				
							
								
								
									
										15
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							@ -17,8 +17,8 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: latest
 | 
			
		||||
 | 
			
		||||
      - name: Update Yarn
 | 
			
		||||
        run: corepack enable && yarn set version stable
 | 
			
		||||
      - name: Enable Yarn
 | 
			
		||||
        run: corepack enable yarn
 | 
			
		||||
 | 
			
		||||
      - name: Cache Dependencies
 | 
			
		||||
        uses: actions/cache@v3.3.2
 | 
			
		||||
@ -29,14 +29,5 @@ jobs:
 | 
			
		||||
      - name: Install Dependencies
 | 
			
		||||
        run: yarn install
 | 
			
		||||
 | 
			
		||||
      - name: Check Format
 | 
			
		||||
        run: yarn format
 | 
			
		||||
 | 
			
		||||
      - name: Check Lint
 | 
			
		||||
        run: yarn lint
 | 
			
		||||
 | 
			
		||||
      - name: Bundle Package
 | 
			
		||||
        run: yarn bundle
 | 
			
		||||
 | 
			
		||||
      - name: Check Differences
 | 
			
		||||
        run: git diff --exit-code HEAD
 | 
			
		||||
        run: yarn bundle && git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										33
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -5,6 +5,39 @@ on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [main]
 | 
			
		||||
jobs:
 | 
			
		||||
  check-package:
 | 
			
		||||
    name: Check Package
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4.1.1
 | 
			
		||||
 | 
			
		||||
      - name: Setup Node.js
 | 
			
		||||
        uses: actions/setup-node@v4.0.0
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: latest
 | 
			
		||||
 | 
			
		||||
      - name: Enable Yarn
 | 
			
		||||
        run: corepack enable yarn
 | 
			
		||||
 | 
			
		||||
      - name: Check Yarn Version
 | 
			
		||||
        run: yarn set version stable && git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
      - name: Cache Dependencies
 | 
			
		||||
        uses: actions/cache@v3.3.2
 | 
			
		||||
        with:
 | 
			
		||||
          path: .yarn
 | 
			
		||||
          key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
 | 
			
		||||
 | 
			
		||||
      - name: Install Dependencies
 | 
			
		||||
        run: yarn install
 | 
			
		||||
 | 
			
		||||
      - name: Check Format
 | 
			
		||||
        run: yarn format && git diff --exit-code HEAD
 | 
			
		||||
 | 
			
		||||
      - name: Check Lint
 | 
			
		||||
        run: yarn lint
 | 
			
		||||
 | 
			
		||||
  test-package:
 | 
			
		||||
    name: Test Package
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user