Skip to content

[DCJ-400-npm]: Bump the npm-minor-patch-dependencies group with 3 updates #4828

[DCJ-400-npm]: Bump the npm-minor-patch-dependencies group with 3 updates

[DCJ-400-npm]: Bump the npm-minor-patch-dependencies group with 3 updates #4828

Workflow file for this run

name: e2e
env:
PROXY_URL: 'https://jade.datarepo-dev.broadinstitute.org'
# This must be defined for the bash redirection
GOOGLE_APPLICATION_CREDENTIALS: 'jade-dev-account.json'
on:
workflow_dispatch: {}
pull_request:
branches:
- develop
schedule:
- cron: '0 4 * * *' # run at 4 AM UTC, 12PM EST.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
e2e_test:
name: Cypress End-to-end Tests
timeout-minutes: 180
strategy:
matrix:
node-version: [20.x]
if: "!contains( github.event.pull_request.labels.*.name, 'skip-ci')"
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cypress run
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
DISABLE_ESLINT_PLUGIN: true
run: |
echo "PROXY_URL=$(echo ${PROXY_URL})" >> $GITHUB_ENV
npm ci
base64 --decode <<< ${{ secrets.SA_B64_CREDENTIALS }} > ${GOOGLE_APPLICATION_CREDENTIALS}
gcloud auth activate-service-account --key-file ${GOOGLE_APPLICATION_CREDENTIALS}
export CYPRESS_GOOGLE_TOKEN=$(gcloud auth print-access-token)
echo ::add-mask::${CYPRESS_GOOGLE_TOKEN}
echo "CYPRESS_GOOGLE_TOKEN=$(echo ${CYPRESS_GOOGLE_TOKEN})" >> $GITHUB_ENV
npm start & timeout 600 bash -c "until nc -z localhost 3000; do sleep 5; done"
npx cypress run --record
report-workflow:
uses: broadinstitute/sherlock/.github/workflows/client-report-workflow.yaml@main
if: ${{ github.ref == 'refs/heads/develop' }}
with:
relates-to-chart-releases: 'datarepo-dev'
notify-slack-channels-upon-workflow-failure: ${{ vars.SLACK_NOTIFICATION_CHANNELS }}
notify-slack-channels-upon-workflow-retry: ${{ vars.SLACK_NOTIFICATION_CHANNELS }}
notify-slack-custom-icon: ':terra-horse:'
permissions:
id-token: write