examples: split shared package into per-platform node and web packages
#72
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: 'Copilot Setup Steps' | |
| # Set the permissions to the lowest permissions possible needed for your steps. | |
| # Copilot will be given its own token for its operations. | |
| permissions: | |
| # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. | |
| # If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete. | |
| contents: read | |
| # Automatically run the setup steps when they are changed to allow for easy validation, and | |
| # allow manual testing through the repository's "Actions" tab | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| pull_request: | |
| paths: | |
| - .github/workflows/copilot-setup-steps.yml | |
| jobs: | |
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| # You can define any steps you want, and they will run before the agent starts. | |
| # If you do not check out your code, Copilot will do this for you. | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies (Node examples) | |
| working-directory: examples/node | |
| run: | | |
| npm install || echo "Failed to install dependencies in examples/node" | |
| - name: Install dependencies (Web examples) | |
| working-directory: examples/web | |
| run: | | |
| npm install || echo "Failed to install dependencies in examples/web" | |
| - name: Install dependencies | |
| run: | | |
| npm install || echo "Failed to install dependencies" | |
| - name: Build packages | |
| run: | | |
| npm run build || echo "Failed to build packages" | |
| - name: Start ClickHouse | |
| uses: isbang/compose-action@3846bcd61da338e9eaaf83e7ed0234a12b099b72 # v2.4.2 | |
| env: | |
| CLICKHOUSE_VERSION: 'latest' | |
| with: | |
| compose-file: 'docker-compose.yml' | |
| down-flags: '--volumes' |