Skip to content

unit

unit #2698

Workflow file for this run

name: unit
on:
workflow_dispatch: {}
pull_request:
branches:
- develop
schedule:
- cron: '0 4 * * *' # run at 4 AM UTC, 12PM EST.
jobs:
unit_test:
name: Cypress Unit Tests
timeout-minutes: 60
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: npm ci
run: npm ci
- name: Run codegen
run: npm run codegen
- name: Cypress Run Component Tests
uses: cypress-io/github-action@v5
env:
DISABLE_ESLINT_PLUGIN: true
with:
command: |
npx cypress run-ct
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