Skip to content

Commit

Permalink
chore: 👷 Scope PR checks (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimarz authored Oct 2, 2023
1 parent 1e91a9b commit 82b9297
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/check-storefront.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Runs conventional commit check on PR
name: Checks storefront
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- 'storefront/**'
jobs:
checks:
name: Builds, lints 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 packages
run: yarn build
- name: Build storefront
run: yarn build:storefront
- name: Lint Code
run: yarn lint ./storefront
- name: Lint CSS
run: yarn lint-style ./storefront/**/*.css
- name: Test
run: yarn test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runs conventional commit check on PR
name: Checks
name: Checks packages
on:
workflow_dispatch:
pull_request:
Expand All @@ -8,9 +8,11 @@ on:
push:
branches:
- main
paths:
- 'packages/**'
jobs:
checks:
name: Checks, builds and tests code
name: Builds, lints and tests code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit 82b9297

Please sign in to comment.