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
|
|
|
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions: {}
|
|
|
|
|
2022-03-28 07:23:57 +00:00
|
|
|
jobs:
|
2022-09-07 00:04:18 +00:00
|
|
|
lint-test-js:
|
2022-10-12 02:05:01 +00:00
|
|
|
name: Lint and Test JS
|
2022-09-07 00:04:18 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-09-07 00:04:18 +00:00
|
|
|
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
|
|
|
|
2022-10-12 02:05:01 +00:00
|
|
|
- name: Lint
|
|
|
|
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
|