build(deps): bump esbuild and vitest in /server #2552
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Cypress Tests | |
| on: | |
| push: | |
| jobs: | |
| run-cypress-tests: | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| container: [1, 2] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| with: | |
| submodules: recursive | |
| - name: Install empirica | |
| run: curl https://install.empirica.dev | sh | |
| - name: Ensure Chrome is consistent | |
| run: | | |
| set -euxo pipefail | |
| echo "Preinstalled Chrome:" | |
| google-chrome --version || true | |
| # The runner may have Chrome preinstalled but without the Google apt repo configured, | |
| # so `apt-get install google-chrome-stable` can fail after a remove. Add the repo | |
| # explicitly and then force-install a single candidate version so both parallel jobs | |
| # converge on the same Chrome major. | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /etc/apt/keyrings/google-chrome.gpg | |
| echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google-chrome.gpg] https://dl.google.com/linux/chrome/deb/ stable main" \ | |
| | sudo tee /etc/apt/sources.list.d/google-chrome.list > /dev/null | |
| sudo apt-get update | |
| echo "Chrome versions available:" | |
| apt-cache madison google-chrome-stable | |
| CHROME_VERSION="$(apt-cache madison google-chrome-stable | head -n1 | awk '{print $3}')" | |
| if [ -z "${CHROME_VERSION}" ]; then | |
| echo "No google-chrome-stable candidates found via apt." | |
| exit 1 | |
| fi | |
| echo "Installing google-chrome-stable=${CHROME_VERSION}" | |
| sudo apt-get install -y --allow-downgrades "google-chrome-stable=${CHROME_VERSION}" | |
| google-chrome --version | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v6.7.1 | |
| with: | |
| working-directory: cypress | |
| build: npm run build | |
| start: npm run start | |
| browser: chrome | |
| record: true | |
| parallel: true | |
| group: "CI RUN" | |
| ci-build-id: ${{ github.run_id }} | |
| wait-on: "http://localhost:3000" | |
| wait-on-timeout: 600 | |
| spec: e2e/*.{js,jsx,ts,tsx} | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
| DELIBERATION_MACHINE_USER_TOKEN: ${{ secrets.DELIBERATION_MACHINE_USER_TOKEN }} | |
| DAILY_APIKEY: ${{ secrets.DAILY_APIKEY }} | |
| QUALTRICS_API_TOKEN: ${{ secrets.QUALTRICS_API_TOKEN }} | |
| QUALTRICS_DATACENTER: ${{ secrets.QUALTRICS_DATACENTER }} | |
| GITHUB_PRIVATE_DATA_OWNER: Watts-Lab | |
| GITHUB_PUBLIC_DATA_OWNER: Watts-Lab | |
| GITHUB_PRIVATE_DATA_REPO: deliberation-data-test | |
| GITHUB_PUBLIC_DATA_REPO: deliberation-data-test | |
| GITHUB_PRIVATE_DATA_BRANCH: private-test | |
| GITHUB_PUBLIC_DATA_BRANCH: public-test | |
| ETHERPAD_BASE_URL: http://localhost:9001/etherpad | |
| ETHERPAD_API_KEY: doremiabc123babyyouandme | |
| CONTAINER_IMAGE_VERSION_TAG: cypress-test |