Skip to content

Commit 7761ca0

Browse files
committed
imp(ci): use yarn workspaces for tests
1 parent 21888e6 commit 7761ca0

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,5 @@ jobs:
8585
runs-on: ubuntu-latest
8686
steps:
8787
- uses: actions/checkout@master
88-
- name: Chartjs
89-
run: |
90-
cd src/Chartjs/Resources/assets
91-
yarn
92-
yarn test
93-
- name: Cropperjs
94-
run: |
95-
cd src/Cropperjs/Resources/assets
96-
yarn
97-
yarn test
98-
- name: Dropzone
99-
run: |
100-
cd src/Dropzone/Resources/assets
101-
yarn
102-
yarn test
103-
- name: LazyImage
104-
run: |
105-
cd src/LazyImage/Resources/assets
106-
yarn
107-
yarn test
88+
- run: yarn
89+
- run: yarn test

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"private": true,
3-
"workspaces": ["src/*/Resources/assets"]
3+
"workspaces": ["src/*/Resources/assets"],
4+
"scripts": {
5+
"build": "yarn workspaces run build",
6+
"test": "yarn workspaces run test"
7+
}
48
}

0 commit comments

Comments
 (0)