|
| 1 | +# This was generated by tool. Edits will be overwritten. |
| 2 | + |
| 3 | +name: docs-mcp/ci |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | + push: |
| 7 | + paths: |
| 8 | + - .config/dotnet-tools.json |
| 9 | + - .github/workflows/docs-mcp-** |
| 10 | + - docs-mcp/** |
| 11 | + - .editorconfig |
| 12 | + - Directory.Packages.props |
| 13 | + - global.json |
| 14 | + - src.props |
| 15 | + - test.props |
| 16 | + pull_request: |
| 17 | + paths: |
| 18 | + - .config/dotnet-tools.json |
| 19 | + - .github/workflows/docs-mcp-** |
| 20 | + - docs-mcp/** |
| 21 | + - .editorconfig |
| 22 | + - Directory.Packages.props |
| 23 | + - global.json |
| 24 | + - src.props |
| 25 | + - test.props |
| 26 | +env: |
| 27 | + DOTNET_NOLOGO: true |
| 28 | + DOTNET_CLI_TELEMETRY_OPTOUT: true |
| 29 | +jobs: |
| 30 | + verify-formatting: |
| 31 | + name: Verify formatting |
| 32 | + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') |
| 33 | + runs-on: |
| 34 | + group: large |
| 35 | + labels: [ubuntu-latest-x64-16core] |
| 36 | + permissions: |
| 37 | + contents: read |
| 38 | + defaults: |
| 39 | + run: |
| 40 | + shell: bash |
| 41 | + working-directory: docs-mcp |
| 42 | + timeout-minutes: 15 |
| 43 | + steps: |
| 44 | + - name: Checkout |
| 45 | + uses: actions/checkout@v4 |
| 46 | + with: |
| 47 | + fetch-depth: 0 |
| 48 | + - name: List .net sdks |
| 49 | + run: dotnet --list-sdks |
| 50 | + - name: Setup Dotnet |
| 51 | + uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 |
| 52 | + with: |
| 53 | + dotnet-version: |- |
| 54 | + 8.0.x |
| 55 | + 9.0.203 |
| 56 | + 10.0.100-rc.2.25502.107 |
| 57 | + - name: Restore |
| 58 | + run: dotnet restore docs-mcp.slnf |
| 59 | + - name: Verify Formatting |
| 60 | + run: dotnet format docs-mcp.slnf --verify-no-changes --no-restore |
| 61 | + build: |
| 62 | + name: Build and test (unit) |
| 63 | + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') |
| 64 | + runs-on: ubuntu-latest |
| 65 | + permissions: |
| 66 | + actions: read |
| 67 | + checks: write |
| 68 | + contents: read |
| 69 | + packages: write |
| 70 | + defaults: |
| 71 | + run: |
| 72 | + shell: bash |
| 73 | + working-directory: docs-mcp |
| 74 | + timeout-minutes: 15 |
| 75 | + steps: |
| 76 | + - name: Checkout |
| 77 | + uses: actions/checkout@v4 |
| 78 | + with: |
| 79 | + fetch-depth: 0 |
| 80 | + - name: List .net sdks |
| 81 | + run: dotnet --list-sdks |
| 82 | + - name: Setup Dotnet |
| 83 | + uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 |
| 84 | + with: |
| 85 | + dotnet-version: |- |
| 86 | + 8.0.x |
| 87 | + 9.0.203 |
| 88 | + 10.0.100-rc.2.25502.107 |
| 89 | + - name: Restore |
| 90 | + run: dotnet restore docs-mcp.slnf |
| 91 | + - name: Build |
| 92 | + run: dotnet build docs-mcp.slnf --no-restore -c Release |
| 93 | + - name: Dotnet devcerts |
| 94 | + run: dotnet dev-certs https --trust |
| 95 | + playwright: |
| 96 | + name: Playwright tests |
| 97 | + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') |
| 98 | + runs-on: |
| 99 | + group: large |
| 100 | + labels: [ubuntu-latest-x64-16core] |
| 101 | + permissions: |
| 102 | + actions: read |
| 103 | + checks: write |
| 104 | + contents: read |
| 105 | + defaults: |
| 106 | + run: |
| 107 | + shell: bash |
| 108 | + working-directory: docs-mcp |
| 109 | + timeout-minutes: 15 |
| 110 | + steps: |
| 111 | + - name: Checkout |
| 112 | + uses: actions/checkout@v4 |
| 113 | + with: |
| 114 | + fetch-depth: 0 |
| 115 | + codeql: |
| 116 | + name: CodeQL analyze |
| 117 | + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') |
| 118 | + runs-on: |
| 119 | + group: large |
| 120 | + labels: [ubuntu-latest-x64-16core] |
| 121 | + defaults: |
| 122 | + run: |
| 123 | + shell: bash |
| 124 | + working-directory: docs-mcp |
| 125 | + steps: |
| 126 | + - name: Checkout |
| 127 | + uses: actions/checkout@v4 |
| 128 | + with: |
| 129 | + fetch-depth: 0 |
| 130 | + pack: |
| 131 | + name: Pack, sign and push |
| 132 | + if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch') |
| 133 | + needs: |
| 134 | + - verify-formatting |
| 135 | + - build |
| 136 | + - playwright |
| 137 | + - codeql |
| 138 | + runs-on: |
| 139 | + group: large |
| 140 | + labels: [ubuntu-latest-x64-16core] |
| 141 | + permissions: |
| 142 | + actions: read |
| 143 | + contents: read |
| 144 | + packages: write |
| 145 | + defaults: |
| 146 | + run: |
| 147 | + shell: bash |
| 148 | + working-directory: docs-mcp |
| 149 | + timeout-minutes: 15 |
| 150 | + steps: |
| 151 | + - name: Checkout |
| 152 | + uses: actions/checkout@v4 |
| 153 | + with: |
| 154 | + fetch-depth: 0 |
| 155 | + - name: List .net sdks |
| 156 | + run: dotnet --list-sdks |
| 157 | + - name: Setup Dotnet |
| 158 | + uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 |
| 159 | + with: |
| 160 | + dotnet-version: |- |
| 161 | + 8.0.x |
| 162 | + 9.0.203 |
| 163 | + 10.0.100-rc.2.25502.107 |
| 164 | + - name: Tool restore |
| 165 | + run: dotnet tool restore |
| 166 | + - name: Pack docs-mcp.slnf |
| 167 | + run: dotnet pack -c Release docs-mcp.slnf -o artifacts |
| 168 | + - name: Sign packages |
| 169 | + if: github.event == 'push' |
| 170 | + run: |- |
| 171 | + for file in artifacts/*.nupkg; do |
| 172 | + dotnet NuGetKeyVaultSignTool sign "$file" --file-digest sha256 --timestamp-rfc3161 http://timestamp.digicert.com --azure-key-vault-url https://duendecodesigninghsm.vault.azure.net/ --azure-key-vault-client-id 18e3de68-2556-4345-8076-a46fad79e474 --azure-key-vault-tenant-id ed3089f0-5401-4758-90eb-066124e2d907 --azure-key-vault-client-secret ${{ secrets.SignClientSecret }} --azure-key-vault-certificate NuGetPackageSigning |
| 173 | + done |
| 174 | + - name: Push packages to GitHub |
| 175 | + if: github.ref == 'refs/heads/main' |
| 176 | + run: dotnet nuget push artifacts/*.nupkg --source https://nuget.pkg.github.com/DuendeSoftware/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate |
| 177 | + env: |
| 178 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 179 | + NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 180 | + - name: Upload Artifacts |
| 181 | + if: github.ref == 'refs/heads/main' |
| 182 | + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 |
| 183 | + with: |
| 184 | + name: artifacts |
| 185 | + path: docs-mcp/artifacts/*.nupkg |
| 186 | + overwrite: true |
| 187 | + retention-days: 15 |
0 commit comments