busy-agency-3812
02/22/2023, 9:59 PMbusy-agency-3812
02/22/2023, 10:16 PMcypress-test:
needs: [workflow-info, build]
runs-on: ubuntu-latest
env:
WORKER_ENV: ${{ needs.workflow-info.outputs.cf-worker-env }}
BASE_URL: ${{ needs.workflow-info.outputs.base-url }}
API_BASE_URL: ${{ needs.workflow-info.outputs.api-host }}
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: "yarn"
node-version: "16"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: |
echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-
- name: Restore next build and deps
uses: actions/cache@v3
with:
path: |
./next/.next
./next/node_modules
./node_modules
~/.cache/Cypress
key: next-build-${{ github.sha }}
- name: Setup /etc/hosts
run: sudo echo "127.0.0.1 e2etest.dev.updater.com" | sudo tee -a /etc/hosts
- name: Run App
run: yarn start:e2e &
- name: Run Cypress Tests
uses: cypress-io/github-action@v5
with:
browser: chrome
working-directory: next
record: true
parallel: true
config: baseUrl=${{ needs.workflow-info.outputs.base-url }}
ci-build-id: ${{ needs.workflow-info.outputs.cypress-run-id }}-${{ github.run_attempt }}
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_DASHBOARD_KEY_NEXT }}
CYPRESS_ENV: dev
CYPRESS_UPDATER_API_BASE_URL: ${{ needs.workflow-info.outputs.api-host }}
UPDATER_API_BASE_URL: ${{ needs.workflow-info.outputs.api-host }}busy-agency-3812
02/22/2023, 10:17 PMTo see the relevant Cypress debug logs, set the environment variable DEBUG on your CI machine and inspect the terminal output to see why the commit information is unavailable.
DEBUG=commit-info,cypress:server:record if i put that in the env: part I get an errorbusy-agency-3812
02/22/2023, 11:05 PMDEBUG: '@cypress/github-action'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}bitter-vase-17481
02/23/2023, 4:18 PMbusy-agency-3812
02/23/2023, 4:21 PMbusy-agency-3812
02/23/2023, 4:22 PMbusy-agency-3812
02/23/2023, 4:56 PM