chore(deps-dev): bump @types/node from 24.9.1 to 24.10.0 #1266
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: test-cross-platform | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - '**/*.md' | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - '**/*.md' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ !contains(github.ref, 'main') }} | |
| jobs: | |
| build-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| - name: Set up cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| - name: Set up node_modules | |
| run: npm ci | |
| - name: Build | |
| run: npm run build --if-present | |
| - name: Build packages | |
| run: mkdir packs && npm pack --workspace packages --pack-destination packs | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: packs | |
| path: ./packs | |
| github-actions-runner-images: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner-image: | |
| - macos-15-intel | |
| - macos-15 | |
| - macos-14 | |
| - ubuntu-24.04 | |
| - ubuntu-22.04 | |
| - windows-2025 | |
| - windows-2022 | |
| node-version: | |
| - 24 | |
| - 22 | |
| - 20 | |
| - 18 | |
| - 16 | |
| runs-on: ${{ matrix.runner-image }} | |
| needs: build-packages | |
| steps: | |
| - name: Set up node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Download artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| path: . | |
| - name: Initialize npm | |
| run: npm init -y | |
| - name: Debug directory structure | |
| if: runner.os != 'Windows' | |
| run: ls -alR | |
| - name: Debug GLIBC version | |
| if: runner.os == 'Linux' | |
| run: ldd --version | |
| - name: Install packages | |
| if: runner.os != 'Windows' | |
| run: | | |
| npm install $(find . -name "clang-format-node-*.tgz") | |
| npm install $(find . -name "clang-format-git-*.tgz") | |
| - name: Install packages | |
| if: runner.os == 'Windows' | |
| run: | | |
| Get-ChildItem -Recurse -Filter "clang-format-node-*.tgz" | ForEach-Object { npm install $_.FullName } | |
| Get-ChildItem -Recurse -Filter "clang-format-git-*.tgz" | ForEach-Object { npm install $_.FullName } | |
| - name: Basic test (Git Bash) | |
| run: | | |
| npx clang-format-node --help | |
| npx clang-format-node --version | |
| npx clang-format-git --help | |
| npx clang-format-git-python --help | |
| - name: Windows PowerShell test | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| npx clang-format-node --help | |
| npx clang-format-node --version | |
| npx clang-format-git --help | |
| npx clang-format-git-python --help | |
| - name: Windows CMD test | |
| if: runner.os == 'Windows' | |
| shell: cmd | |
| run: npx clang-format-node --help && npx clang-format-node --version && npx clang-format-git --help && npx clang-format-git-python --help | |
| docker-images: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| docker: | |
| - platform: arm/v7 | |
| node-name: arm | |
| - platform: arm64/v8 | |
| node-name: arm64 | |
| - platform: ppc64le | |
| node-name: ppc64 | |
| - platform: s390x | |
| node-name: s390x | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Set up checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: linux/${{ matrix.docker.platform }} | |
| - name: Docker run background | |
| run: docker run -d --name ${{ matrix.docker.node-name }} --platform linux/${{ matrix.docker.platform }} ubuntu:22.04 tail -f /dev/null | |
| - name: Copy git-clang-format file to Docker container | |
| run: docker cp ./packages/clang-format-git/bin/cfg-linux-${{ matrix.docker.node-name }}/git-clang-format ${{ matrix.docker.node-name }}:/ | |
| - name: Copy clang-format file to Docker container | |
| run: docker cp ./packages/clang-format-node/bin/cfn-linux-${{ matrix.docker.node-name }}/clang-format ${{ matrix.docker.node-name }}:/ | |
| - name: Docker exec | |
| run: | | |
| docker exec ${{ matrix.docker.node-name }} /bin/bash -c " | |
| echo ---Set up dependencies--- && | |
| apt-get update -y && | |
| apt-get install -y git && | |
| echo ---Debug uname -m--- && | |
| uname -m && | |
| echo ---Debug pwd--- && | |
| pwd && | |
| echo ---Debug ls -l--- && | |
| ls -l /git-clang-format /clang-format && | |
| echo ---Chmod--- && | |
| chmod 755 /git-clang-format /clang-format && | |
| ls -l /git-clang-format /clang-format && | |
| echo ---Test git-clang-format--- && | |
| /git-clang-format --help && | |
| echo ---Test clang-format--- && | |
| /clang-format --help && | |
| /clang-format --version | |
| " |