Add Renovate config for dependency updates #42
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 | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| branch-strategy: | |
| name: Branch Strategy Check | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Validate PR source and target branches | |
| run: | | |
| BASE="${{ github.base_ref }}" | |
| HEAD="${{ github.head_ref }}" | |
| if [ "$BASE" = "staging" ] && [[ ! "$HEAD" =~ ^feat/ ]]; then | |
| echo "PRs to staging must come from feat/* branches. Got: $HEAD" | |
| exit 1 | |
| fi | |
| if [ "$BASE" = "main" ] && [ "$HEAD" != "staging" ] && [[ ! "$HEAD" =~ ^renovate/ ]]; then | |
| echo "PRs to main must come from staging or renovate/*. Got: $HEAD" | |
| exit 1 | |
| fi | |
| echo "Branch strategy check passed for $HEAD -> $BASE" | |
| quality: | |
| name: Lint, Typecheck and Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: bun run lint | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Build assets | |
| run: bun run build | |
| - name: Ensure generated assets are committed | |
| run: git diff --exit-code -- assets snippets/vite-tag.liquid | |
| theme-check: | |
| name: Theme Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Theme Check | |
| uses: shopify/theme-check-action@v2 | |
| with: | |
| token: ${{ github.token }} |