Version Packages #1302
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.103.0' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0 | |
| with: | |
| node-version: 24 | |
| 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@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0 | |
| with: | |
| node-version: 24 | |
| cache: true | |
| - run: vp run build | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [22, 24] | |
| 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@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.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 }}-${{ github.sha }} | |
| restore-keys: test-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }} | |
| - run: vp test | |
| test-stylelint-v16: | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.0 | |
| with: | |
| node-version: 24 | |
| - run: vp add -D -w stylelint@16 | |
| - run: vp test packages/stylelint-plugin | |
| vscode-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [22, 24] | |
| 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@8ecb39174989ce55af90f45cf55b02738599831d # v1.6.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' |