Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

ci.yml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. name: Cordova HTTP Plugin CI
  2. on: [push]
  3. env:
  4. nodejs: '10.x'
  5. jobs:
  6. test-www-interface:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v1
  10. - name: Install Node.js ${{ env.nodejs }}
  11. uses: actions/setup-node@v1
  12. with:
  13. node-version: ${{ env.nodejs }}
  14. - name: Install node modules
  15. run: npm ci
  16. - name: Run WWW interface tests
  17. run: npm run testjs
  18. build-ios:
  19. runs-on: macOS-latest
  20. steps:
  21. - uses: actions/checkout@v1
  22. - name: Install Node.js ${{ env.nodejs }}
  23. uses: actions/setup-node@v1
  24. with:
  25. node-version: ${{ env.nodejs }}
  26. - name: Install node modules
  27. run: npm ci
  28. - name: Update test cert for httpbin.org
  29. run: npm run updatecert
  30. - name: Build test app
  31. run: scripts/build-test-app.sh --ios --emulator
  32. build-android:
  33. runs-on: ubuntu-latest
  34. env:
  35. BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
  36. BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
  37. steps:
  38. - uses: actions/checkout@v1
  39. - name: Install Node.js ${{ env.nodejs }}
  40. uses: actions/setup-node@v1
  41. with:
  42. node-version: ${{ env.nodejs }}
  43. - name: Install node modules
  44. run: npm ci
  45. - name: Install JDK 1.8
  46. uses: actions/setup-java@v1
  47. with:
  48. java-version: 1.8
  49. - name: Update test cert for httpbin.org
  50. run: npm run updatecert
  51. - name: Add workaround for mipsel reference
  52. run: sudo mkdir -p $ANDROID_HOME/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64
  53. - name: Build test app
  54. run: scripts/build-test-app.sh --android --device
  55. - name: Upload artifact to BrowserStack
  56. if: env.BROWSERSTACK_USERNAME != ''
  57. run: scripts/upload-browserstack.sh --android
  58. - name: Run e2e tests
  59. if: env.BROWSERSTACK_USERNAME != ''
  60. run: scripts/test-app.sh --android --device