Feature/#811 create base structure #778
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: CI Workflow | |
| on: pull_request | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Check TypeScript types | |
| run: npm run check-types | |
| - name: Build | |
| run: npm run build | |
| - name: Run tests | |
| run: npm test | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| npm ci | |
| node --run install:e2e-browsers | |
| - name: Build | |
| run: npm run build | |
| - name: Run E2E tests | |
| run: npm run ci:e2e | |
| changeset-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for changeset | |
| run: | | |
| BASE=${{ github.event.pull_request.base.sha }} | |
| HEAD=${{ github.event.pull_request.head.sha }} | |
| PACKAGES_CHANGED=$(git diff --name-only "$BASE" "$HEAD" -- packages/ | head -1) | |
| if [ -n "$PACKAGES_CHANGED" ]; then | |
| CHANGESET_ADDED=$(git diff --name-only "$BASE" "$HEAD" -- '.changeset/*.md' | head -1) | |
| if [ -z "$CHANGESET_ADDED" ]; then | |
| echo "::error::This PR modifies packages/ but has no changeset. Run 'node --run changeset' to add one." | |
| exit 1 | |
| fi | |
| echo "Changeset found for package changes." | |
| else | |
| echo "No package changes detected, skipping changeset check." | |
| fi |