1
- name : Testing apps
1
+ name : Testing in real apps
2
2
on : [push, pull_request]
3
3
4
4
jobs :
5
5
testing_app :
6
6
strategy :
7
7
fail-fast : false
8
8
matrix :
9
- test_app :
9
+ app :
10
10
- name : npm
11
11
working_directory : test_apps/npm
12
12
script : |
15
15
npm run encore dev
16
16
npm run encore production
17
17
18
+ - name : npm (with Babel)
19
+ working_directory : test_apps/npm-with-babel
20
+ script : |
21
+ npm install --ci
22
+ npm add --save-dev ../../webpack-encore.tgz
23
+ npm run encore dev
24
+ npm run encore production
25
+
26
+ - name : npm (with external Babel configuration file)
27
+ working_directory : test_apps/npm-with-external-babel-config
28
+ script : |
29
+ npm install --ci
30
+ npm add --save-dev ../../webpack-encore.tgz
31
+ npm run encore dev
32
+ npm run encore production
33
+
18
34
- name : pnpm
19
35
working_directory : test_apps/pnpm
20
36
script : |
@@ -23,16 +39,50 @@ jobs:
23
39
pnpm run encore dev
24
40
pnpm run encore production
25
41
42
+ - name : pnpm (with Babel)
43
+ working_directory : test_apps/pnpm-with-babel
44
+ script : |
45
+ pnpm install --frozen-lockfile
46
+ pnpm add --save-dev ../../webpack-encore.tgz
47
+ pnpm run encore dev
48
+ pnpm run encore production
49
+
50
+ - name : pnpm (with external Babel configuration file)
51
+ working_directory : test_apps/pnpm-with-external-babel-config
52
+ script : |
53
+ pnpm install --frozen-lockfile
54
+ pnpm add --save-dev ../../webpack-encore.tgz
55
+ pnpm run encore dev
56
+ pnpm run encore production
57
+
26
58
- name : Yarn Plug'n'Play
27
- working_directory : test_apps/yarn_pnp
59
+ working_directory : test_apps/yarn-pnp
60
+ script : |
61
+ yarn set version berry
62
+ yarn install --frozen-lockfile
63
+ yarn add --dev ../../webpack-encore.tgz
64
+ yarn run encore dev
65
+ yarn run encore production
66
+
67
+ - name : Yarn Plug'n'Play (with Babel)
68
+ working_directory : test_apps/yarn-pnp-with-babel
69
+ script : |
70
+ yarn set version berry
71
+ yarn install --frozen-lockfile
72
+ yarn add --dev ../../webpack-encore.tgz
73
+ yarn run encore dev
74
+ yarn run encore production
75
+
76
+ - name : Yarn Plug'n'Play (with external Babel configuration file)
77
+ working_directory : test_apps/yarn-pnp-with-external-babel-config
28
78
script : |
29
79
yarn set version berry
30
80
yarn install --frozen-lockfile
31
81
yarn add --dev ../../webpack-encore.tgz
32
82
yarn run encore dev
33
83
yarn run encore production
34
84
35
- name : ${{ matrix.test_app .name }}
85
+ name : ${{ matrix.app .name }}
36
86
runs-on : ubuntu-latest
37
87
38
88
steps :
44
94
with :
45
95
node-version : ' 14'
46
96
47
- - if : matrix.test_app .name == 'pnpm'
97
+ - if : ${{ contains( matrix.app .name, 'pnpm') }}
48
98
name : Install pnpm
49
99
uses : pnpm/action-setup@v2
50
100
with :
54
104
run : yarn pack --filename webpack-encore.tgz
55
105
56
106
- name : Running script
57
- working-directory : ${{ matrix.test_app .working_directory }}
58
- run : ${{ matrix.test_app .script }}
107
+ working-directory : ${{ matrix.app .working_directory }}
108
+ run : ${{ matrix.app .script }}
0 commit comments