12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- name: End-to-end tests
- on:
- push:
- branches: [ main ]
- pull_request_target:
- # We want all branches so we configure types to be the GH default again
- types: [ opened, synchronize, reopened ]
- jobs:
- e2e:
- name: Browser tests
- runs-on: ubuntu-latest
- steps:
- - name: Checkout sources
- uses: actions/checkout@v2
- with:
- # Necessary for yarn version plugin
- # https://yarnpkg.com/features/release-workflow#commit-history
- fetch-depth: 0
- - name: Get yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
- - uses: actions/cache@v2
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
- - name: Install Node.js
- uses: actions/setup-node@v2
- with:
- node-version: 16.x
- - name: Install dependencies
- run: corepack yarn install --immutable
- - name: Build Uppy packages
- run: corepack yarn build
- - name: Run end-to-end browser tests
- run: corepack yarn run e2e:ci
- env:
- COMPANION_UNSPLASH_KEY: ${{secrets.COMPANION_UNSPLASH_KEY}}
- COMPANION_UNSPLASH_SECRET: ${{secrets.COMPANION_UNSPLASH_SECRET}}
- VITE_TRANSLOADIT_KEY: ${{secrets.TRANSLOADIT_KEY}}
- VITE_TRANSLOADIT_TEMPLATE: ${{secrets.TRANSLOADIT_TEMPLATE}}
- VITE_TRANSLOADIT_SERVICE_URL: ${{secrets.TRANSLOADIT_SERVICE_URL}}
|