diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index 1239c9ffb..4cc49d252 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -168,3 +168,17 @@ jobs: on: pull_request: types: [assigned, opened, synchronize, reopened] + paths: + - 'src/**' + - 'tests/**' + - 'examples/**' + - '.github/e2e/**' + - '*.props' + - '*.targets' + - '*.ruleset' + - 'Directory.*' + - 'CodeCoverage.runsettings' + - 'global.json' + - 'nuget.config' + - 'kubernetes-client.proj' + - '.github/workflows/buildtest.yaml' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c9dadc7f2..d59078c08 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,9 +8,33 @@ permissions: on: push: branches: [ master ] + paths: + - 'src/**' + - 'tests/**' + - 'examples/**' + - '*.props' + - '*.targets' + - '*.ruleset' + - 'Directory.*' + - 'global.json' + - 'nuget.config' + - 'swagger.json' + - '.github/workflows/codeql-analysis.yml' pull_request: # The branches below must be a subset of the branches above branches: [ master ] + paths: + - 'src/**' + - 'tests/**' + - 'examples/**' + - '*.props' + - '*.targets' + - '*.ruleset' + - 'Directory.*' + - 'global.json' + - 'nuget.config' + - 'swagger.json' + - '.github/workflows/codeql-analysis.yml' schedule: - cron: '15 23 * * 1' @@ -26,12 +50,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Setup dotnet - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: dotnet-version: | 8.0.x @@ -40,7 +64,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 + uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -60,4 +84,4 @@ jobs: run: dotnet build --configuration Debug --no-restore - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 + uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 diff --git a/.github/workflows/docfx.yaml b/.github/workflows/docfx.yaml index aa21c7a5a..c725ac63c 100644 --- a/.github/workflows/docfx.yaml +++ b/.github/workflows/docfx.yaml @@ -3,6 +3,11 @@ name: Docfx on: push: branches: [ master ] + paths: + - 'doc/**' + - 'src/**' + - 'README.md' + - '.github/workflows/docfx.yaml' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -25,12 +30,12 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Setup dotnet - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: dotnet-version: | 8.0.x diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml index 050372031..654ecf258 100644 --- a/.github/workflows/draft.yaml +++ b/.github/workflows/draft.yaml @@ -6,6 +6,19 @@ permissions: on: push: branches: [ master ] + paths: + - 'src/**' + - 'tests/**' + - 'examples/**' + - '*.props' + - '*.targets' + - '*.ruleset' + - 'Directory.*' + - 'global.json' + - 'nuget.config' + - 'version.json' + - 'kubernetes-client.proj' + - '.github/workflows/draft.yaml' jobs: draft: @@ -13,12 +26,12 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Setup dotnet - uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: dotnet-version: | 8.0.x @@ -31,7 +44,7 @@ jobs: - name: dotnet test run: dotnet test - - uses: dotnet/nbgv@705dad19ab067f12f4e9eeaa60812e01edef5d25 # v0.5.2 + - uses: dotnet/nbgv@705dad19ab067f12f4e9eeaa60812e01edef5d25 # v0.5.2 with: setAllVars: true