Skip to content

feat(crm): Roles as columns #1380

feat(crm): Roles as columns

feat(crm): Roles as columns #1380

Workflow file for this run

name: E2E tests
on:
push:
branches: main
pull_request:
workflow_dispatch:
jobs:
cypress-run:
runs-on: self-hosted
container: cypress/browsers
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore build cache
id: restore-build-cache
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm run start
env:
NEXT_PUBLIC_MOCK_CONNECTOR: true
NEXT_PUBLIC_E2E_WALLET_MNEMONIC: ${{ secrets.NEXT_PUBLIC_E2E_WALLET_MNEMONIC }}
CYPRESS_DC_BOT_TOKEN: ${{ secrets.CYPRESS_DC_BOT_TOKEN }}
KV_URL: ${{ secrets.KV_URL }}
KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }}
KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }}
CYPRESS_RUN_ID: ${{github.run_id}}
- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: screenshots-videos
path: |
cypress/screenshots
cypress/videos
# - name: Send Discord notification
# if: ${{ failure() && github.ref == 'refs/heads/main' }}
# shell: bash
# run: curl -X POST -H 'Content-Type:application/json' -d '{"embeds":[{"title":"Failing test","fields":[{"name":"Trigger","value":"${{github.event_name}}"},{"name":"Action","value":"https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"}],"color":15548997}]}' ${{ secrets.FAILING_E2E_TEST_DC_WEBHOOK }}
- name: Save build cache
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ steps.restore-build-cache.outputs.cache-primary-key }}