설명 없음

windows-ci.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. name: Windows CI
  2. on: [pull_request]
  3. jobs:
  4. run-windows-tests:
  5. name: Build & run tests
  6. runs-on: windows-2019
  7. steps:
  8. - uses: actions/checkout@v2
  9. name: Checkout Code
  10. - name: Setup Node.js
  11. uses: actions/setup-node@v1
  12. with:
  13. node-version: '12.9.1'
  14. - name: Install Visual Studio components
  15. shell: powershell
  16. run: .\.github\workflows\scripts\install-vs-features.ps1 Microsoft.VisualStudio.Component.VC.v141.x86.x64,Microsoft.VisualStudio.ComponentGroup.UWP.VC.v141
  17. - name: Setup MSBuild
  18. uses: microsoft/setup-msbuild@v1.0.0
  19. with:
  20. vs-version: 16.5
  21. - name: Setup NuGet
  22. uses: NuGet/setup-nuget@v1.0.2
  23. - name: Check node modules cache
  24. uses: actions/cache@v1
  25. id: yarn-cache
  26. with:
  27. path: ./node_modules
  28. key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
  29. restore-keys: |
  30. ${{ runner.os }}-yarn-
  31. - name: Install node modules
  32. if: steps.yarn-cache.outputs.cache-hit != 'true'
  33. run: yarn --pure-lockfile
  34. - name: yarn build
  35. if: steps.yarn-cache.outputs.cache-hit == 'true'
  36. run: |
  37. yarn build
  38. yarn tsc
  39. - name: NuGet restore
  40. run: nuget restore example\windows\WebViewWindows.sln
  41. - name: Build x64 release
  42. run: msbuild example\windows\WebViewWindows.sln /p:Configuration=Release /p:Platform=x64 -m
  43. - name: Deploy
  44. shell: powershell
  45. run: |
  46. cd example
  47. Copy-Item -Path windows\x64\Release -Recurse -Destination windows\
  48. npx react-native run-windows --arch x64 --release --no-build --no-packager
  49. - name: Start Appium server
  50. shell: powershell
  51. run: Start-Process PowerShell -ArgumentList "yarn appium"
  52. - name: Run tests
  53. run: yarn test:windows