feat(content-mapper): add experimental content mapper for TypeScript 7 #1484
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| VSCODE_VERSION: '1.119.0' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0 | |
| with: | |
| node-version: 26 | |
| cache: true | |
| - run: vp check | |
| build: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0 | |
| with: | |
| node-version: 26 | |
| cache: true | |
| - run: vp run build | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [26] | |
| os: [ubuntu-24.04-arm, macos-latest] | |
| stylelint-version: ['17'] | |
| include: | |
| # Windows is pinned to Node.js 24.15.0 because Node.js 24.16+ and 26.x bundle libuv 1.52.x, | |
| # which has a Windows file-watching bug. | |
| # ref: https://github.com/libuv/libuv/issues/5010 | |
| - node: '24.15.0' | |
| os: windows-11-arm | |
| stylelint-version: '17' | |
| # Configuration for Node.js 24 | |
| - node: 24 | |
| os: ubuntu-24.04-arm | |
| stylelint-version: '17' | |
| # Configuration for Node.js 22 | |
| - node: 22 | |
| os: ubuntu-24.04-arm | |
| stylelint-version: '17' | |
| # Configuration for Stylelint 16 | |
| - node: 24 | |
| os: ubuntu-24.04-arm | |
| stylelint-version: '16' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: true | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: | | |
| node_modules/.vite/vitest | |
| packages/*/dist | |
| packages/*/tsconfig.build.tsbuildinfo | |
| tsconfig.tsbuildinfo | |
| key: test-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}-stylelint-${{ matrix.stylelint-version }}-${{ github.sha }} | |
| restore-keys: test-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}-stylelint-${{ matrix.stylelint-version }} | |
| - run: vp test | |
| env: | |
| STYLELINT_VERSION: ${{ matrix.stylelint-version }} | |
| vscode-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [26] | |
| os: [ubuntu-24.04-arm, macos-latest, windows-11-arm] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: true | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: | | |
| packages/*/dist | |
| packages/*/tsconfig.build.tsbuildinfo | |
| tsconfig.tsbuildinfo | |
| key: test-vscode-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }} | |
| restore-keys: test-vscode-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }} | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: .vscode-test | |
| key: vscode-test-${{ runner.arch }}-${{ runner.os }}-vscode-${{ env.VSCODE_VERSION }} | |
| - run: xvfb-run -a vp run vscode-test | |
| if: runner.os == 'Linux' | |
| - run: vp run vscode-test | |
| if: runner.os != 'Linux' |