@@ -238,3 +238,81 @@ jobs:
238238 comment-id : ${{ github.event.comment.id }}
239239 body : Packageing failed in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). @${{ github.event.comment.user.login }}
240240 edit-mode : append
241+
242+ sync-test :
243+ needs : [packaging]
244+ strategy :
245+ matrix :
246+ node :
247+ - 18.12.0
248+ os :
249+ - macos-latest
250+ - ubuntu-20.04
251+ - windows-2019
252+
253+ runs-on : ${{ matrix.os }}
254+
255+ name : ${{ matrix.os }}(Node.js ${{ matrix.node }})
256+
257+ steps :
258+ - name : Checkout
259+ uses : actions/checkout@v3
260+
261+
262+ - name : Install libudev
263+ if : matrix.os == 'ubuntu-20.04'
264+ run : |
265+ sudo apt-get update
266+ sudo apt-get install -y libudev-dev
267+ - name : Download Neuron App Zip(arm64)
268+ if : matrix.os == 'macos-latest'
269+ uses : actions/download-artifact@v4
270+ with :
271+ name : Neuron-Mac-arm64
272+ path : packages/sync-test
273+
274+ - name : Download Neuron Win
275+ if : matrix.os == 'windows-2019'
276+ uses : actions/download-artifact@v4
277+ with :
278+ name : Neuron-Win
279+ path : packages/sync-test
280+
281+ - name : Download Neuron Linux
282+ if : matrix.os == 'ubuntu-20.04'
283+ uses : actions/download-artifact@v4
284+ with :
285+ name : Neuron-Linux
286+ path : packages/sync-test
287+
288+ - name : macos run
289+ if : matrix.os == 'macos-latest'
290+ run : |
291+ cd packages/sync-test
292+ yarn
293+ bash scripts/prepare_neuron_macos.sh
294+ yarn sync-test
295+ - name : Windows run
296+ if : matrix.os == 'windows-2019'
297+ run : |
298+ cd packages\sync-test
299+ yarn
300+ .\scripts\prepare_neuron_windows.bat
301+ yarn sync-test
302+ - name : ubuntu run
303+ if : matrix.os == 'ubuntu-20.04'
304+ run : |
305+ cd packages/sync-test
306+ yarn
307+ bash scripts/prepare_neuron_linux.sh
308+ xvfb-run --auto-servernum yarn sync-test
309+ - name : tar result
310+ if : always()
311+ run : |
312+ tar -zcvf tmp.${{ matrix.os }}.tar.gz packages/sync-test/tmp
313+ - name : Publish reports
314+ if : failure()
315+ uses : actions/upload-artifact@v3
316+ with :
317+ name : jfoa-build-reports-${{ runner.os }}
318+ path : tmp.${{ matrix.os }}.tar.gz
0 commit comments