diff --git a/.github/workflows/check-storefront.yml b/.github/workflows/check-storefront.yml new file mode 100644 index 0000000000..4bae5bdc56 --- /dev/null +++ b/.github/workflows/check-storefront.yml @@ -0,0 +1,34 @@ +# Runs conventional commit check on PR +name: Checks storefront +on: + workflow_dispatch: + pull_request: + branches: + - main + push: + branches: + - main + paths: + - 'storefront/**' +jobs: + checks: + name: Checks, builds and tests code + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Use node 20 and yarn cache + uses: actions/setup-node@v3 + with: + node-version: '20' + cache: 'yarn' + - name: Install dependencies + run: yarn install --immutable + - name: Build + run: yarn build:storefront + - name: Lint Code + run: yarn lint ./storefront + - name: Lint CSS + run: yarn lint-style ./storefront + - name: Test + run: yarn test diff --git a/.github/workflows/check-packages.yml b/.github/workflows/checks-packages.yml similarity index 100% rename from .github/workflows/check-packages.yml rename to .github/workflows/checks-packages.yml