Repository navigation
Improve document analytics (#45) #107
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| client: | |
| name: Client | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Audit changed client code | |
| if: github.event_name == 'pull_request' | |
| run: pnpm --filter thebuilder-web-analytics run audit --base '${{ github.event.pull_request.base.sha }}' --format github-annotations | |
| - name: Test client | |
| run: pnpm --filter thebuilder-web-analytics test | |
| - name: Build client | |
| run: pnpm --filter thebuilder-web-analytics build | |
| dotnet: | |
| name: .NET (Umbraco ${{ matrix.umbraco-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| umbraco-version: | |
| - 17.1.0 | |
| - 17.* | |
| - 18.* | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Test package | |
| run: dotnet test tests/TheBuilder.WebAnalytics.Tests/TheBuilder.WebAnalytics.Tests.csproj '-p:UmbracoVersion=${{ matrix.umbraco-version }}' | |
| - name: Build example | |
| run: dotnet build samples/TheBuilder.WebAnalytics.Example/TheBuilder.WebAnalytics.Example.csproj '-p:UmbracoVersion=${{ matrix.umbraco-version }}' | |
| package: | |
| name: Package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install backoffice dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Pack NuGet package | |
| run: >- | |
| dotnet pack src/TheBuilder.WebAnalytics/TheBuilder.WebAnalytics.csproj | |
| --configuration Release | |
| --output artifacts | |
| -p:ContinuousIntegrationBuild=true | |
| - name: Validate NuGet archive | |
| run: unzip -t artifacts/*.nupkg |