Update README to enhance installation instructions #277
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: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npx --yes @biomejs/biome check . | |
| test: | |
| name: Smoke tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm test | |
| # E2E tests live in the ranch harness repo (private). They run from | |
| # ranch's CI against grainulator's deployed site. Grainulator's CI only | |
| # runs unit/smoke tests here. See ranch/harness/grainulator-e2e/README.md. | |
| size: | |
| name: Package size | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Check package size | |
| run: | | |
| npm pack --dry-run 2>&1 | tail -1 | |
| SIZE=$(npm pack --dry-run 2>&1 | grep 'total files' || echo "unknown") | |
| echo "Package contents: $SIZE" | |
| # Fail if packed size exceeds 500KB | |
| BYTES=$(npm pack 2>&1 | xargs -I {} stat -c%s {} 2>/dev/null || echo "0") | |
| if [ "$BYTES" -gt 512000 ] 2>/dev/null; then | |
| echo "::error::Package exceeds 500KB ($BYTES bytes)" | |
| exit 1 | |
| fi |