mirror of
				https://github.com/threeal/cmake-action.git
				synced 2025-11-03 21:33:42 +00:00 
			
		
		
		
	ci: audit step names in workflows (#373)
This commit is contained in:
		
							parent
							
								
									d797dcbf23
								
							
						
					
					
						commit
						3582170018
					
				
							
								
								
									
										2
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							@ -9,7 +9,7 @@ jobs:
 | 
				
			|||||||
    name: Build Package
 | 
					    name: Build Package
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Setup Node.js
 | 
					      - name: Setup Node.js
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								.github/workflows/check.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/check.yaml
									
									
									
									
										vendored
									
									
								
							@ -9,7 +9,7 @@ jobs:
 | 
				
			|||||||
    name: Check Package
 | 
					    name: Check Package
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Setup Node.js
 | 
					      - name: Setup Node.js
 | 
				
			||||||
@ -22,7 +22,7 @@ jobs:
 | 
				
			|||||||
        with:
 | 
					        with:
 | 
				
			||||||
          version: stable
 | 
					          version: stable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Check Format
 | 
					      - name: Check Formatting
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          yarn format
 | 
					          yarn format
 | 
				
			||||||
          git diff --exit-code HEAD
 | 
					          git diff --exit-code HEAD
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										32
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/test.yaml
									
									
									
									
										vendored
									
									
								
							@ -9,7 +9,7 @@ jobs:
 | 
				
			|||||||
    name: Test Package
 | 
					    name: Test Package
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout
 | 
					      - name: Checkout Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Setup Node.js
 | 
					      - name: Setup Node.js
 | 
				
			||||||
@ -33,7 +33,7 @@ jobs:
 | 
				
			|||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        os: [windows, ubuntu, macos]
 | 
					        os: [windows, ubuntu, macos]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Project
 | 
					      - name: Checkout Sample Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: threeal/cpp-starter
 | 
					          repository: threeal/cpp-starter
 | 
				
			||||||
@ -48,18 +48,18 @@ jobs:
 | 
				
			|||||||
            dist
 | 
					            dist
 | 
				
			||||||
          sparse-checkout-cone-mode: false
 | 
					          sparse-checkout-cone-mode: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure and Build Project
 | 
					      - name: Build Sample Project
 | 
				
			||||||
        id: cmake-action
 | 
					        id: cmake-action
 | 
				
			||||||
        uses: ./cmake-action
 | 
					        uses: ./cmake-action
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Run Project
 | 
					      - name: Run Sample Project
 | 
				
			||||||
        run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5
 | 
					        run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test-action-with-specified-dirs:
 | 
					  test-action-with-specified-dirs:
 | 
				
			||||||
    name: Test Action With Specified Directories
 | 
					    name: Test Action With Specified Directories
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Project
 | 
					      - name: Checkout Sample Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: threeal/cpp-starter
 | 
					          repository: threeal/cpp-starter
 | 
				
			||||||
@ -75,21 +75,21 @@ jobs:
 | 
				
			|||||||
            dist
 | 
					            dist
 | 
				
			||||||
          sparse-checkout-cone-mode: false
 | 
					          sparse-checkout-cone-mode: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure and Build Project
 | 
					      - name: Build Sample Project
 | 
				
			||||||
        id: cmake-action
 | 
					        id: cmake-action
 | 
				
			||||||
        uses: ./cmake-action
 | 
					        uses: ./cmake-action
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          source-dir: project
 | 
					          source-dir: project
 | 
				
			||||||
          build-dir: output
 | 
					          build-dir: output
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Run Project
 | 
					      - name: Run Sample Project
 | 
				
			||||||
        run: output/generate_sequence 5
 | 
					        run: output/generate_sequence 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test-action-without-run-build:
 | 
					  test-action-without-run-build:
 | 
				
			||||||
    name: Test Action Without Run Build
 | 
					    name: Test Action Without Run Build
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Project
 | 
					      - name: Checkout Sample Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: threeal/cpp-starter
 | 
					          repository: threeal/cpp-starter
 | 
				
			||||||
@ -104,10 +104,10 @@ jobs:
 | 
				
			|||||||
            dist
 | 
					            dist
 | 
				
			||||||
          sparse-checkout-cone-mode: false
 | 
					          sparse-checkout-cone-mode: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Modify Project
 | 
					      - name: Modify Sample Project
 | 
				
			||||||
        run: echo 'invalid' >> src/main.cpp
 | 
					        run: echo 'invalid' >> src/main.cpp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure Project
 | 
					      - name: Configure Sample Project
 | 
				
			||||||
        uses: ./cmake-action
 | 
					        uses: ./cmake-action
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          run-build: false
 | 
					          run-build: false
 | 
				
			||||||
@ -116,7 +116,7 @@ jobs:
 | 
				
			|||||||
    name: Test Action With Additional Options
 | 
					    name: Test Action With Additional Options
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Project
 | 
					      - name: Checkout Sample Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: threeal/cpp-starter
 | 
					          repository: threeal/cpp-starter
 | 
				
			||||||
@ -131,19 +131,19 @@ jobs:
 | 
				
			|||||||
            dist
 | 
					            dist
 | 
				
			||||||
          sparse-checkout-cone-mode: false
 | 
					          sparse-checkout-cone-mode: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure and Build Project
 | 
					      - name: Build Sample Project
 | 
				
			||||||
        uses: ./cmake-action
 | 
					        uses: ./cmake-action
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          options: BUILD_TESTING=ON
 | 
					          options: BUILD_TESTING=ON
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Test Project
 | 
					      - name: Test Sample Project
 | 
				
			||||||
        uses: threeal/ctest-action@v1.1.0
 | 
					        uses: threeal/ctest-action@v1.1.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test-action-with-custom-generator:
 | 
					  test-action-with-custom-generator:
 | 
				
			||||||
    name: Test Action With Custom Generator
 | 
					    name: Test Action With Custom Generator
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout Project
 | 
					      - name: Checkout Sample Project
 | 
				
			||||||
        uses: actions/checkout@v4.1.7
 | 
					        uses: actions/checkout@v4.1.7
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: threeal/cpp-starter
 | 
					          repository: threeal/cpp-starter
 | 
				
			||||||
@ -161,12 +161,12 @@ jobs:
 | 
				
			|||||||
      - name: Setup Ninja
 | 
					      - name: Setup Ninja
 | 
				
			||||||
        uses: seanmiddleditch/gha-setup-ninja@v5
 | 
					        uses: seanmiddleditch/gha-setup-ninja@v5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure Project
 | 
					      - name: Configure Sample Project
 | 
				
			||||||
        id: cmake-action
 | 
					        id: cmake-action
 | 
				
			||||||
        uses: ./cmake-action
 | 
					        uses: ./cmake-action
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          generator: Ninja
 | 
					          generator: Ninja
 | 
				
			||||||
          run-build: false
 | 
					          run-build: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Build Project
 | 
					      - name: Build Sample Project
 | 
				
			||||||
        run: ninja -C ${{ steps.cmake-action.outputs.build-dir }}
 | 
					        run: ninja -C ${{ steps.cmake-action.outputs.build-dir }}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user