Git Product home page Git Product logo

theme-check-action's Introduction

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:

  • theme_root - (optional, default: '.') Path from repo root to the root of the theme (e.g. './dist').
  • flags - (optional) theme-check command line flags. (e.g. '--fail-level suggestion')
  • version - (optional, default: latest) specific Shopify CLI @shopify/theme (v3.50+) to use.
  • token - (optional) result of ${{ github.token }} to enable GitHub check annotations.
  • base - (optional) When token is set, only the files that contain a diff with this ref (branch, tag or commit) will have GitHub check annotations.

theme-check-action's People

Contributors

charlespwd avatar karreiro avatar snacsnoc avatar poitrin avatar vfonic avatar cursedcoder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.