Update nodejs to v20 #56
Workflow file for this run
  
    
      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: Node.js CI | |
| on: [push, pull_request] | |
| env: | |
| nodeVersion: 20.x | |
| dotNetVersion: 6.0.x | |
| jobs: | |
| validation: | |
| runs-on: ubuntu-latest | |
| name: Validation docs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.nodeVersion }} | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.dotNetVersion }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Validation | |
| run: npm run validate-docs | |
| - name: Archive internal-tools artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: internal-tools-artifacts-validation | |
| path: artifacts/internal-tools/ | |
| retention-days: 7 | |
| build: | |
| runs-on: ubuntu-latest | |
| name: ContentMap | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.nodeVersion }} | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.dotNetVersion }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Generate ContentMaps | |
| run: npm run generate-content-map | |
| - name: Archive internal-tools artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: internal-tools-artifacts-build | |
| path: artifacts/internal-tools/ | |
| retention-days: 7 | |
| link: | |
| runs-on: ubuntu-latest | |
| name: Check links | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.nodeVersion }} | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.dotNetVersion }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Generate ContentMaps | |
| run: npm run generate-content-map | |
| - name: Check links | |
| run: npm run validate-links | |
| - name: Archive internal-tools artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: internal-tools-artifacts-link | |
| path: artifacts/internal-tools/ | |
| retention-days: 7 | |
| # modules: | |
| # runs-on: ubuntu-latest | |
| # name: Check modules guide | |
| # steps: | |
| # - name: Checkout | |
| # uses: actions/checkout@v4 | |
| # - name: Setup Node.js | |
| # uses: actions/setup-node@v4 | |
| # with: | |
| # node-version: ${{ env.nodeVersion }} | |
| # - name: Set up .NET | |
| # uses: actions/setup-dotnet@v4 | |
| # with: | |
| # dotnet-version: ${{ env.dotNetVersion }} | |
| # - name: Install dependencies | |
| # run: npm install | |
| # - name: Check modules guide | |
| # run: npm run validate-modules-guide | |
| # - name: Archive internal-tools artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: internal-tools-artifacts | |
| # path: artifacts/internal-tools/ | |
| # retention-days: 7 | |
| merge-artifacts: | |
| runs-on: ubuntu-latest | |
| needs: [ validation, build, link ] | |
| steps: | |
| - name: Merge artifacts | |
| uses: actions/upload-artifact/merge@v4 | |
| continue-on-error: true | |
| with: | |
| name: internal-tools-artifacts | |
| pattern: internal-tools-artifacts-* | |
| delete-merged: true |