Home

Awesome

shopify/theme-check-action

About this repo | Usage | Configuration

About this repo

shopify theme check on Shopify Theme Pull Requests using GitHub Actions.

demo

Usage

Add shopify/theme-check-action@v2 to the workflow of your Shopify theme.

# .github/workflows/theme-check.yml
name: Theme Check
on: [push]
jobs:
  theme-check:
    name: Theme Check
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Theme Check
        uses: shopify/theme-check-action@v2
        with:
          theme_root: '.' # optional, could be './dist'
          token: ${{ github.token }}
          base: main

Configuration

Note:

For Theme Check Ruby support (v1.X.X), refer to the v1 documentation.

shopify/theme-check-action@v2 accepts the following arguments: