end-to-end.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: End-to-end tests
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request_target:
  6. # We want all branches so we configure types to be the GH default again
  7. types: [ opened, synchronize, reopened ]
  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. with:
  16. # Necessary for yarn version plugin
  17. # https://yarnpkg.com/features/release-workflow#commit-history
  18. fetch-depth: 0
  19. - name: Cache npm dependencies
  20. id: cache-npm-libraries
  21. uses: actions/cache@v2
  22. with:
  23. path: .yarn/cache/*
  24. key: ${{ runner.os }}
  25. - name: Install Node.js
  26. uses: actions/setup-node@v2
  27. with:
  28. node-version: 16.x
  29. - name: Install dependencies
  30. run: corepack yarn install --immutable
  31. - name: Build Uppy packages
  32. run: corepack yarn build
  33. - name: Run end-to-end browser tests
  34. run: corepack yarn run e2e:ci
  35. env:
  36. COMPANION_UNSPLASH_KEY: ${{secrets.COMPANION_UNSPLASH_KEY}}
  37. COMPANION_UNSPLASH_SECRET: ${{secrets.COMPANION_UNSPLASH_SECRET}}
  38. VITE_TRANSLOADIT_KEY: ${{secrets.TRANSLOADIT_KEY}}
  39. VITE_TRANSLOADIT_TEMPLATE: ${{secrets.TRANSLOADIT_TEMPLATE}}
  40. VITE_TRANSLOADIT_SERVICE_URL: ${{secrets.TRANSLOADIT_SERVICE_URL}}