chore: update all GitHub Actions to their latest versions

This commit is contained in:
Przemek Więch
2026-07-05 23:42:31 +02:00
parent 85df7d13bb
commit b3e4a0aabd
9 changed files with 44 additions and 42 deletions

View File

@@ -21,15 +21,15 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v4
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
build-mode: none build-mode: none
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v4
with: with:
category: "/language:${{matrix.language}}" category: "/language:${{matrix.language}}"

View File

@@ -13,17 +13,17 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Convert Repository Name to Lowercase - name: Convert Repository Name to Lowercase
run: | run: |
echo "GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV echo "GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v4
- name: Log in to GitHub Container Registry - name: Log in to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
@@ -31,7 +31,7 @@ jobs:
- name: Extract metadata - name: Extract metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v6
with: with:
images: ${{ env.GHCR_IMAGE_NAME }} images: ${{ env.GHCR_IMAGE_NAME }}
tags: | tags: |
@@ -39,7 +39,7 @@ jobs:
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: . context: .
file: docker/Dockerfile file: docker/Dockerfile

View File

@@ -9,9 +9,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
uses: actions/checkout@v7
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'

View File

@@ -9,9 +9,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout repository
uses: actions/checkout@v7
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'

View File

@@ -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 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI name: Node.js CI
@@ -14,21 +14,21 @@ jobs:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v2 - name: Checkout repository
- name: Use Node.js ${{ matrix.node-version }} uses: actions/checkout@v7
uses: actions/setup-node@v4
- name: Use Node.js
uses: actions/setup-node@v6
with: with:
node-version: ${{ matrix.node-version }} node-version: 24.x
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- name: Prettier Format Check - 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 lint
- run: npm run build - run: npm run build
- run: npm test - run: npm test
@@ -42,7 +42,7 @@ jobs:
- name: Cache Playwright Browsers - name: Cache Playwright Browsers
id: cache-playwright id: cache-playwright
uses: actions/cache@v4 uses: actions/cache@v6
with: with:
path: ~/.cache/ms-playwright path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -66,8 +66,8 @@ jobs:
- name: Upload Playwright report - name: Upload Playwright report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: playwright-report-${{ matrix.node-version }} name: playwright-report
path: playwright-report/ path: playwright-report/
retention-days: 30 retention-days: 30

View File

@@ -21,7 +21,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Pull Docker image - name: Pull Docker image
run: docker pull ghcr.io/pewu/topola-viewer:latest run: docker pull ghcr.io/pewu/topola-viewer:latest
@@ -40,7 +40,7 @@ jobs:
ghcr.io/pewu/topola-viewer:latest ghcr.io/pewu/topola-viewer:latest
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'
@@ -53,7 +53,7 @@ jobs:
- name: Cache Playwright Browsers - name: Cache Playwright Browsers
id: cache-playwright id: cache-playwright
uses: actions/cache@v4 uses: actions/cache@v6
with: with:
path: ~/.cache/ms-playwright path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -80,7 +80,7 @@ jobs:
- name: Upload Playwright report - name: Upload Playwright report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: prober-report-docker name: prober-report-docker
path: playwright-report/ path: playwright-report/

View File

@@ -31,10 +31,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'
@@ -51,7 +51,7 @@ jobs:
- name: Cache Playwright Browsers - name: Cache Playwright Browsers
id: cache-playwright id: cache-playwright
uses: actions/cache@v4 uses: actions/cache@v6
with: with:
path: ~/.cache/ms-playwright path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -70,7 +70,7 @@ jobs:
- name: Upload Playwright report - name: Upload Playwright report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: prober-report-gh-pages name: prober-report-gh-pages
path: playwright-report/ path: playwright-report/

View File

@@ -31,10 +31,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'
@@ -51,7 +51,7 @@ jobs:
- name: Cache Playwright Browsers - name: Cache Playwright Browsers
id: cache-playwright id: cache-playwright
uses: actions/cache@v4 uses: actions/cache@v6
with: with:
path: ~/.cache/ms-playwright path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -70,7 +70,7 @@ jobs:
- name: Upload Playwright report - name: Upload Playwright report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: prober-report-wikitree-cors name: prober-report-wikitree-cors
path: playwright-report/ path: playwright-report/

View File

@@ -31,10 +31,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v7
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v6
with: with:
node-version: 24.x node-version: 24.x
cache: 'npm' cache: 'npm'
@@ -51,7 +51,7 @@ jobs:
- name: Cache Playwright Browsers - name: Cache Playwright Browsers
id: cache-playwright id: cache-playwright
uses: actions/cache@v4 uses: actions/cache@v6
with: with:
path: ~/.cache/ms-playwright path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }} key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -70,7 +70,7 @@ jobs:
- name: Upload Playwright report - name: Upload Playwright report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: prober-report-wikitree name: prober-report-wikitree
path: playwright-report/ path: playwright-report/