2022-03-28 07:23:57 +00:00
|
|
|
name: Lint and tests for JS packages and woocommerce-admin/client
|
|
|
|
|
2022-09-07 00:04:18 +00:00
|
|
|
on: pull_request
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2022-03-28 07:23:57 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-09-07 00:04:18 +00:00
|
|
|
lint-test-js:
|
|
|
|
name: Lint and Test JS
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2022-09-13 01:55:03 +00:00
|
|
|
- name: Setup WooCommerce Monorepo
|
2022-09-15 21:21:42 +00:00
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2022-09-07 00:04:18 +00:00
|
|
|
|
|
|
|
- name: Lint
|
2022-09-15 21:21:42 +00:00
|
|
|
run: pnpm run -r --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color lint
|
2022-09-07 00:04:18 +00:00
|
|
|
|
|
|
|
- name: Test
|
2022-09-15 21:21:42 +00:00
|
|
|
run: pnpm run test --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color
|