chore(deps): bump @ai-sdk/svelte from 3.0.115 to 3.0.116 #1490
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
| # | |
| # Copyright (C) 2022-2025 Red Hat, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: pr-check | |
| on: | |
| merge_group: | |
| pull_request: | |
| types: [labeled, synchronize, opened, ready_for_review, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| windows: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: Windows | |
| runs-on: windows-2025 | |
| timeout-minutes: 60 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Run Build | |
| timeout-minutes: 20 | |
| run: pnpm compile:pull-request | |
| - name: List Build | |
| run: ls ./dist/ | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: windows-installer-x64 | |
| path: ./dist/kortex-*-setup-x64.exe | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: windows-installer-arm64 | |
| path: ./dist/kortex-*-setup-arm64.exe | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: windows-exe-x64 | |
| path: ./dist/kortex*-next-x64.exe | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: windows-exe-arm64 | |
| path: ./dist/kortex*-next-arm64.exe | |
| linux: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: Linux | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 40 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Install flatpak | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install flatpak -y | |
| sudo apt-get install flatpak-builder -y | |
| sudo apt-get install elfutils -y | |
| flatpak remote-add --if-not-exists flathub --user https://flathub.org/repo/flathub.flatpakrepo | |
| flatpak install flathub --user -y org.freedesktop.Platform//24.08 org.freedesktop.Sdk//24.08 | |
| - name: Run Build | |
| timeout-minutes: 20 | |
| run: pnpm compile:pull-request | |
| - name: List Build | |
| run: ls -la ./dist/ | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: linux | |
| path: ./dist/kortex-*.tar.gz | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: flatpak | |
| path: ./dist/kortex-*.flatpak | |
| darwin: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: macOS | |
| runs-on: macos-15 | |
| timeout-minutes: 40 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Run Build | |
| timeout-minutes: 40 | |
| run: pnpm compile:pull-request | |
| - name: List Build | |
| run: ls -la ./dist/ | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: macos-x64-dmg | |
| path: ./dist/kortex-*x64.dmg | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: macos-arm64-dmg | |
| path: ./dist/kortex-*arm64.dmg | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: macos-universal-dmg | |
| path: ./dist/kortex-*universal.dmg | |
| lint-format: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: linter, formatters | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 40 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Run linter | |
| run: pnpm lint:check | |
| - name: Run formatter | |
| run: pnpm format:check | |
| # Check we don't have changes in git | |
| - name: Check no changes in git | |
| run: | | |
| if ! git diff --exit-code; then | |
| echo "Found changes in git" | |
| exit 1 | |
| fi | |
| typecheck: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: typecheck | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 40 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Run typecheck | |
| run: pnpm typecheck | |
| - name: Run svelte check | |
| run: pnpm svelte:check | |
| unit-tests: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: unit tests / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 40 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-2025, ubuntu-24.04, macos-15] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| # run the unit tests with coverage on ubuntu | |
| - name: Run unit tests with coverage | |
| if: ${{ matrix.os=='ubuntu-24.04' }} | |
| run: pnpm test:unit:coverage | |
| # do not run coverage on non-ubuntu os | |
| - name: Run unit tests | |
| if: ${{ matrix.os!='ubuntu-24.04' }} | |
| run: pnpm test:unit | |
| # publish codecov report if linux | |
| - name: publish codecov report | |
| if: ${{ matrix.os=='ubuntu-24.04' }} | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| smoke-e2e-tests: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: smoke e2e tests | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| mode: [production, development] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| name: Install pnpm | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Execute pnpm | |
| run: pnpm install | |
| - name: Run Smoke E2E tests in ${{ matrix.mode == 'production' && 'Production' || 'Development' }} Mode | |
| run: | | |
| if [ ${{ matrix.mode }} == 'production' ]; then | |
| echo "Compiling Kortex in production mode" | |
| export ELECTRON_ENABLE_INSPECT=true | |
| pnpm compile:current --linux dir | |
| path=$(realpath ./dist/linux-unpacked/kortex) | |
| echo "Kortex built binary: $path" | |
| export KORTEX_BINARY=$path | |
| fi | |
| pnpm test:e2e | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@3585e9575db828022551b4231f165eb59a0e74e3 # v5.6.2 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| fail_on_failure: true | |
| include_passed: true | |
| detailed_summary: true | |
| annotate_only: true | |
| require_tests: true | |
| report_paths: '**/*results.xml' | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: always() | |
| with: | |
| name: ${{ matrix.mode }}-smoke-e2e-tests | |
| path: | | |
| ./tests/**/output/ | |
| !./tests/**/traces/raw | |
| detect_pnpm_changes: | |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'area/ci') || !github.event.pull_request.draft }} | |
| name: Detect pnpm lock or pr-check files changes | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| pnpm_lock_changed: ${{ steps.pnpm_changed.outputs.PNPM_LOCK_CHANGED }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 2 | |
| - name: Evaluate changes in files | |
| id: pnpm_changed | |
| run: | | |
| BASE_REF="${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref || 'main' }}" | |
| BASE_REF="${BASE_REF#refs/heads/}" # Strip 'refs/heads/' if present | |
| git fetch origin ${BASE_REF} | |
| git diff --name-only origin/${BASE_REF} HEAD > changes.txt | |
| if grep -q -e 'pnpm-lock.yaml' -e 'pr-check.yaml' changes.txt; then | |
| echo "PNPM_LOCK_CHANGED=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "PNPM_LOCK_CHANGED=false" >> $GITHUB_OUTPUT | |
| fi |