1- name : Testing apps
1+ name : Testing in real apps
22on : [push, pull_request]
33
44jobs :
55 testing_app :
66 strategy :
77 fail-fast : false
88 matrix :
9- test_app :
9+ app :
1010 - name : npm
1111 working_directory : test_apps/npm
1212 script : |
1515 npm run encore dev
1616 npm run encore production
1717
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+
1834 - name : pnpm
1935 working_directory : test_apps/pnpm
2036 script : |
@@ -23,16 +39,50 @@ jobs:
2339 pnpm run encore dev
2440 pnpm run encore production
2541
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+
2658 - 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
2878 script : |
2979 yarn set version berry
3080 yarn install --frozen-lockfile
3181 yarn add --dev ../../webpack-encore.tgz
3282 yarn run encore dev
3383 yarn run encore production
3484
35- name : ${{ matrix.test_app .name }}
85+ name : ${{ matrix.app .name }}
3686 runs-on : ubuntu-latest
3787
3888 steps :
4494 with :
4595 node-version : ' 14'
4696
47- - if : matrix.test_app .name == 'pnpm'
97+ - if : ${{ contains( matrix.app .name, 'pnpm') }}
4898 name : Install pnpm
4999 uses : pnpm/action-setup@v2
50100 with :
54104 run : yarn pack --filename webpack-encore.tgz
55105
56106 - 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