mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-04 13:53:41 +00:00 
			
		
		
		
	ci: add Test Package job in the Test workflow
This commit is contained in:
		
							parent
							
								
									0cbe7ab177
								
							
						
					
					
						commit
						1eaa75dbc6
					
				
							
								
								
									
										30
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@ -5,6 +5,36 @@ on:
 | 
				
			|||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches: [latest, main]
 | 
					    branches: [latest, main]
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 | 
					  test-package:
 | 
				
			||||||
 | 
					    name: Test Package
 | 
				
			||||||
 | 
					    runs-on: ${{ matrix.os }}-latest
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      fail-fast: false
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        os: [windows, ubuntu, macos]
 | 
				
			||||||
 | 
					    env:
 | 
				
			||||||
 | 
					      NODE_OPTIONS: --experimental-vm-modules
 | 
				
			||||||
 | 
					    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: Cache deps
 | 
				
			||||||
 | 
					        uses: actions/cache@v3.3.2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          path: .yarn
 | 
				
			||||||
 | 
					          key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Install deps
 | 
				
			||||||
 | 
					        run: corepack enable && yarn install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Test lib
 | 
				
			||||||
 | 
					        run: yarn test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  default-usage:
 | 
					  default-usage:
 | 
				
			||||||
    runs-on: ${{ matrix.os }}-latest
 | 
					    runs-on: ${{ matrix.os }}-latest
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user