From 6d56e635e73360ee0f2662f01a17b17170a6b2ed Mon Sep 17 00:00:00 2001 From: Zaitsev Kirill Date: Fri, 29 May 2026 18:07:24 +0400 Subject: [PATCH] ci: GitHub Actions Node 24 runtime support added --- .github/actions/setup-dependencies/action.yml | 4 ++-- .github/workflows/release.yml | 12 +++++------ .github/workflows/tests.yml | 20 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/actions/setup-dependencies/action.yml b/.github/actions/setup-dependencies/action.yml index 54d48044..169ca4cb 100644 --- a/.github/actions/setup-dependencies/action.yml +++ b/.github/actions/setup-dependencies/action.yml @@ -10,7 +10,7 @@ runs: using: composite steps: - name: Use Node.js ${{ inputs.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: ${{ inputs.node-version }} @@ -19,7 +19,7 @@ runs: run: make .yarnrc.yml - name: Cache dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: .yarn key: ${{ runner.OS }}-node-${{ inputs.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a2c554d..fed4f54e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -98,7 +98,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup dependencies uses: ./.github/actions/setup-dependencies @@ -109,7 +109,7 @@ jobs: run: yarn workspace @retailcrm/embed-ui-v1-components run storybook:build - name: Upload Storybook artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: v1-components-storybook path: packages/v1-components/storybook/dist @@ -127,16 +127,16 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Download Storybook artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: name: v1-components-storybook path: packages/v1-components/storybook/dist - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@v4.1.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: packages/v1-components/storybook/dist diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9f0380c4..b9f05254 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Run actionlint uses: devops-actions/actionlint@v0.1.10 @@ -27,11 +27,11 @@ jobs: strategy: matrix: - node-version: [ 22.x, 24.x ] + node-version: [ 22.x, 24.15.0 ] steps: - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup dependencies uses: ./.github/actions/setup-dependencies @@ -56,11 +56,11 @@ jobs: strategy: matrix: - node-version: [ 22.x, 24.x ] + node-version: [ 22.x, 24.15.0 ] steps: - name: Using branch ${{ github.ref }} for repository ${{ github.repository }}. - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup dependencies uses: ./.github/actions/setup-dependencies @@ -77,23 +77,23 @@ jobs: run: yarn test - name: Run coverage - if: ${{ matrix.node-version == '24.x' }} + if: ${{ startsWith(matrix.node-version, '24.') }} run: yarn test:coverage - name: Run typecheck tests run: yarn vitest run -c packages/v1-contexts/vitest.config.ts --typecheck.only --typecheck.checker tsc --typecheck.tsconfig packages/v1-contexts/tsconfig.json - name: Install Playwright Chromium - if: ${{ matrix.node-version == '24.x' }} + if: ${{ startsWith(matrix.node-version, '24.') }} run: yarn workspace @retailcrm/embed-ui-v1-endpoint exec playwright install --with-deps chromium - name: Run v1-endpoint e2e tests - if: ${{ matrix.node-version == '24.x' }} + if: ${{ startsWith(matrix.node-version, '24.') }} run: yarn workspace @retailcrm/embed-ui-v1-endpoint run test:e2e - name: Upload v1-endpoint e2e screenshots - if: ${{ failure() && matrix.node-version == '24.x' }} - uses: actions/upload-artifact@v4 + if: ${{ failure() && startsWith(matrix.node-version, '24.') }} + uses: actions/upload-artifact@v6 with: name: v1-endpoint-playwright-screenshots-${{ matrix.node-version }} path: packages/v1-endpoint/artifacts/playwright/screenshots