fix: replace require() with ES module imports #5
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 VS Code Workflows Integration | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - feat/add-vscode-extension-ci | |
| paths: | |
| - '.github/workflows/test-vscode-workflows-integration.yml' | |
| - 'packages/vscode-extension-ci/**' | |
| jobs: | |
| test-with-apex-language-support: | |
| name: Test with apex-language-support | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout github-workflows | |
| uses: actions/checkout@v6 | |
| with: | |
| path: toolkit | |
| - name: Checkout apex-language-support | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: forcedotcom/apex-language-support | |
| path: test-repo | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22.x' | |
| - name: Install dependencies in test repo | |
| working-directory: test-repo | |
| run: npm ci | |
| - name: Build CLI package | |
| working-directory: toolkit/packages/vscode-extension-ci | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Test ext-package-selector | |
| working-directory: test-repo | |
| run: | | |
| node ../toolkit/packages/vscode-extension-ci/dist/cli.js ext-package-selector | |
| echo "✓ Package selector works" | |
| - name: Test ext-build-type | |
| working-directory: test-repo | |
| run: | | |
| node ../toolkit/packages/vscode-extension-ci/dist/cli.js ext-build-type | |
| echo "✓ Build type detection works" | |
| - name: Build VSIX package | |
| working-directory: test-repo/packages/apex-lsp-vscode-extension | |
| run: | | |
| npm run vscode:package | |
| ls -la *.vsix | |
| echo "✓ VSIX packaging successful" |