25 lines
845 B
YAML
25 lines
845 B
YAML
name: Lint and tests for JS packages and woocommerce-admin/client
|
|
|
|
on: pull_request
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint-test-js:
|
|
name: Lint and Test JS
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup WooCommerce Monorepo
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
|
with:
|
|
install-filters: 'woocommerce/client/admin...'
|
|
|
|
- name: Lint
|
|
run: pnpm run lint --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color
|
|
|
|
- name: Test
|
|
run: pnpm run test --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color
|