-
Notifications
You must be signed in to change notification settings - Fork 49
67 lines (66 loc) · 2.07 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test packages
on: ['pull_request']
jobs:
lint:
name: Prettier formatting and linting check
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install root dependencies
run: yarn
- name: Is formatted and linted
run: yarn lint:check
test:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
matrix:
package:
[
'vendure-order-client',
'vendure-plugin-admin-ui-helpers',
'vendure-plugin-coinbase',
'vendure-plugin-customer-managed-groups',
'vendure-plugin-dutch-postalcode',
'vendure-plugin-e-boekhouden',
'vendure-plugin-goedgepickt',
'vendure-plugin-google-cloud-tasks',
'vendure-plugin-google-storage-assets',
'vendure-plugin-invoices',
'vendure-plugin-limit-variant-per-order',
'vendure-plugin-metrics',
'vendure-plugin-modify-customer-orders',
'vendure-plugin-multiserver-db-sessioncache',
'vendure-plugin-myparcel',
'vendure-plugin-order-export',
'vendure-plugin-picqer',
'vendure-plugin-popularity-scores',
'vendure-plugin-sendcloud',
'vendure-plugin-shipping-by-weight-and-country',
'vendure-plugin-stock-monitoring',
'vendure-plugin-stripe-subscription',
'vendure-plugin-variant-bulk-update',
'vendure-plugin-webhook',
]
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies with Yarn workspaces
run: yarn
- name: Build
run: cd packages/${{ matrix.package }} && yarn build
- name: Test
run: cd packages/${{ matrix.package }} && yarn test