end-to-end.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: End-to-end tests
  2. on: push
  3. env:
  4. GIT_AUTHOR_NAME: Uppy Bot
  5. GIT_COMMITTER_NAME: Uppy Bot
  6. GIT_AUTHOR_EMAIL: uppybot@uppy.io
  7. GIT_COMMITTER_EMAIL: uppybot@uppy.io
  8. jobs:
  9. e2e:
  10. name: Browser tests
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout sources
  14. uses: actions/checkout@v2
  15. - name: Install Node.js
  16. uses: actions/setup-node@v2-beta
  17. with:
  18. node-version: 16.x
  19. - name: Install npm 7
  20. run: npm install --global npm@7
  21. - name: Install dependencies
  22. run: npm ci
  23. - name: Start Sauce Connect
  24. uses: saucelabs/sauce-connect-action@v1.1.1
  25. with:
  26. username: ${{secrets.SAUCE_USERNAME}}
  27. accessKey: ${{secrets.SAUCE_ACCESS_KEY}}
  28. tunnelIdentifier: ${{github.run_id}}.${{github.run_number}}
  29. - name: Run end-to-end browser tests
  30. run: npm run test:endtoend
  31. env:
  32. SAUCE_TUNNEL_IDENTIFIER: ${{github.run_id}}.${{github.run_number}}
  33. SAUCE_BUILD: ${{github.run_id}}
  34. SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
  35. SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}