-
-
Notifications
You must be signed in to change notification settings - Fork 198
109 lines (94 loc) · 3.58 KB
/
testing_apps.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Testing in real apps
on: [push, pull_request]
jobs:
testing_app:
strategy:
fail-fast: false
matrix:
app:
- name: npm
working_directory: test_apps/npm
script: |
npm install --ci
npm add --save-dev ../../webpack-encore.tgz
npm run encore dev
npm run encore production
- name: npm (with Babel)
working_directory: test_apps/npm-with-babel
script: |
npm install --ci
npm add --save-dev ../../webpack-encore.tgz
npm run encore dev
npm run encore production
- name: npm (with external Babel configuration file)
working_directory: test_apps/npm-with-external-babel-config
script: |
npm install --ci
npm add --save-dev ../../webpack-encore.tgz
npm run encore dev
npm run encore production
- name: pnpm
working_directory: test_apps/pnpm
script: |
pnpm install --frozen-lockfile
pnpm add --save-dev ../../webpack-encore.tgz
pnpm run encore dev
pnpm run encore production
- name: pnpm (with Babel)
working_directory: test_apps/pnpm-with-babel
script: |
pnpm install --frozen-lockfile
pnpm add --save-dev ../../webpack-encore.tgz
pnpm run encore dev
pnpm run encore production
- name: pnpm (with external Babel configuration file)
working_directory: test_apps/pnpm-with-external-babel-config
script: |
pnpm install --frozen-lockfile
pnpm add --save-dev ../../webpack-encore.tgz
pnpm run encore dev
pnpm run encore production
- name: Yarn Plug'n'Play
working_directory: test_apps/yarn-pnp
script: |
yarn set version berry
yarn install --frozen-lockfile
yarn add --dev ../../webpack-encore.tgz
yarn run encore dev
yarn run encore production
- name: Yarn Plug'n'Play (with Babel)
working_directory: test_apps/yarn-pnp-with-babel
script: |
yarn set version berry
yarn install --frozen-lockfile
yarn add --dev ../../webpack-encore.tgz
yarn run encore dev
yarn run encore production
- name: Yarn Plug'n'Play (with external Babel configuration file)
working_directory: test_apps/yarn-pnp-with-external-babel-config
script: |
yarn set version berry
yarn install --frozen-lockfile
yarn add --dev ../../webpack-encore.tgz
yarn run encore dev
yarn run encore production
name: ${{ matrix.app.name }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Node ${{matrix.node-versions}}
uses: actions/setup-node@v3
with:
node-version: '14'
- if: ${{ contains(matrix.app.name, 'pnpm') }}
name: Install pnpm
uses: pnpm/action-setup@v2
with:
# The latest version of pnpm does not support node 14.x anymore.
version: 7.x
- name: Packing Encore
run: yarn pack --filename webpack-encore.tgz
- name: Running script
working-directory: ${{ matrix.app.working_directory }}
run: ${{ matrix.app.script }}