7
7
branches : ['**']
8
8
9
9
jobs :
10
- changes :
11
- runs-on : ubuntu-latest
12
- outputs :
13
- is_specific : ${{ steps.path-check.outputs.specific_dir }}
14
- is_others : ${{ steps.path-check.outputs.others }}
15
- steps :
16
- - id : path-check
17
- uses : dorny/paths-filter@v2
18
- with :
19
- list-files : shell
20
- filters : |
21
- specific_dir:
22
- - 'packages/cli-platform-ios/**'
23
- - 'packages/cli-platform-apple/**'
24
- others:
25
- - '**/**'
26
- - '!packages/cli-platform-ios/**'
27
- - '!packages/cli-platform-apple/**'
28
10
lint :
29
11
name : Lint
30
12
runs-on : ubuntu-latest
63
45
strategy :
64
46
matrix :
65
47
node-version : [18, 20]
66
- os : [ubuntu-latest, macos-latest]
48
+ os : [ubuntu-latest, macos-latest, windows-2019 ]
67
49
runs-on : ${{ matrix.os }}
68
50
defaults :
69
51
run :
88
70
with :
89
71
python-version : ' 3.10'
90
72
73
+ - name : Add msbuild to PATH
74
+ if : runner.os == 'windows'
75
+
76
+
91
77
- name : Use Node.js ${{ matrix.node-version }}
92
78
uses : actions/setup-node@v3
93
79
with :
@@ -104,50 +90,3 @@ jobs:
104
90
105
91
- name : E2E tests
106
92
run : yarn test:ci:e2e
107
-
108
- e2e-tests-windows :
109
- needs : changes
110
- if : needs.changes.outputs.is_others == 'true'
111
- runs-on : windows-latest
112
- strategy :
113
- matrix :
114
- node-version : [18, 20]
115
- os : [windows-2019]
116
- defaults :
117
- run :
118
- shell : bash
119
- steps :
120
- - uses : actions/checkout@v3
121
-
122
- - uses : actions/setup-java@v3
123
- with :
124
- distribution : ' zulu'
125
- java-version : 17
126
-
127
- - uses : gradle/actions/setup-gradle@v3
128
-
129
- - uses : actions/setup-python@v4
130
- if : runner.os == 'macOS'
131
- with :
132
- python-version : ' 3.10'
133
-
134
- - name : Add msbuild to PATH
135
- if : runner.os == 'windows'
136
-
137
-
138
- - name : Use Node.js ${{ matrix.node-version }}
139
- uses : actions/setup-node@v3
140
- with :
141
- node-version : ${{ matrix.node-version }}
142
- cache : yarn
143
-
144
- - name : Setup Git user
145
- run : |
146
- git config --global user.name "test"
147
- git config --global user.email "[email protected] "
148
-
149
- - name : Install dependencies
150
- run : yarn --frozen-lockfile
151
-
152
- - name : E2E tests
153
- run : yarn test:ci:e2e
0 commit comments