diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d45cf7e..269442b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,15 +21,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: none - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 5c057d3..2bf22ec 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -13,17 +13,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Convert Repository Name to Lowercase run: | echo "GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} @@ -31,7 +31,7 @@ jobs: - name: Extract metadata id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ${{ env.GHCR_IMAGE_NAME }} tags: | @@ -39,7 +39,7 @@ jobs: type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} - name: Build and push Docker image - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: . file: docker/Dockerfile diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index a86a108..04be376 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -9,9 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v7 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' diff --git a/.github/workflows/deploy-wikitree-apps.yml b/.github/workflows/deploy-wikitree-apps.yml index 69f435f..bd371b2 100644 --- a/.github/workflows/deploy-wikitree-apps.yml +++ b/.github/workflows/deploy-wikitree-apps.yml @@ -9,9 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v7 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bd044bf..5c9c49a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,4 +1,4 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions name: Node.js CI @@ -14,21 +14,21 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 24.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Use Node.js + uses: actions/setup-node@v6 with: - node-version: ${{ matrix.node-version }} + node-version: 24.x cache: 'npm' + - run: npm ci + - name: Prettier Format Check - run: npx prettier --check "{src,tests}/**/*.{ts,tsx,json}" + run: npx prettier --check "{src,tests,docs}/**/*.{ts,tsx,json,md}" "*.md" + - run: npm run lint - run: npm run build - run: npm test @@ -42,7 +42,7 @@ jobs: - name: Cache Playwright Browsers id: cache-playwright - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} @@ -66,8 +66,8 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: - name: playwright-report-${{ matrix.node-version }} + name: playwright-report path: playwright-report/ retention-days: 30 diff --git a/.github/workflows/prober-docker.yml b/.github/workflows/prober-docker.yml index a98ab5f..8dc592f 100644 --- a/.github/workflows/prober-docker.yml +++ b/.github/workflows/prober-docker.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Pull Docker image run: docker pull ghcr.io/pewu/topola-viewer:latest @@ -40,7 +40,7 @@ jobs: ghcr.io/pewu/topola-viewer:latest - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' @@ -53,7 +53,7 @@ jobs: - name: Cache Playwright Browsers id: cache-playwright - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} @@ -80,7 +80,7 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: prober-report-docker path: playwright-report/ diff --git a/.github/workflows/prober-gh-pages.yml b/.github/workflows/prober-gh-pages.yml index 346d369..c840383 100644 --- a/.github/workflows/prober-gh-pages.yml +++ b/.github/workflows/prober-gh-pages.yml @@ -31,10 +31,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' @@ -51,7 +51,7 @@ jobs: - name: Cache Playwright Browsers id: cache-playwright - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} @@ -70,7 +70,7 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: prober-report-gh-pages path: playwright-report/ diff --git a/.github/workflows/prober-wikitree-cors.yml b/.github/workflows/prober-wikitree-cors.yml index 2deca3b..6780978 100644 --- a/.github/workflows/prober-wikitree-cors.yml +++ b/.github/workflows/prober-wikitree-cors.yml @@ -31,10 +31,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' @@ -51,7 +51,7 @@ jobs: - name: Cache Playwright Browsers id: cache-playwright - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} @@ -70,7 +70,7 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: prober-report-wikitree-cors path: playwright-report/ diff --git a/.github/workflows/prober-wikitree.yml b/.github/workflows/prober-wikitree.yml index 3aa2ac8..e2c72b7 100644 --- a/.github/workflows/prober-wikitree.yml +++ b/.github/workflows/prober-wikitree.yml @@ -31,10 +31,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 24.x cache: 'npm' @@ -51,7 +51,7 @@ jobs: - name: Cache Playwright Browsers id: cache-playwright - uses: actions/cache@v4 + uses: actions/cache@v6 with: path: ~/.cache/ms-playwright key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} @@ -70,7 +70,7 @@ jobs: - name: Upload Playwright report if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: prober-report-wikitree path: playwright-report/