Skip to content

feat: revamp customers list #3897

feat: revamp customers list

feat: revamp customers list #3897

Workflow file for this run

name: TestE2E
on:
pull_request:
types: [opened, reopened, review_requested, ready_for_review, synchronize]
jobs:
cypress-run:
if: github.event.pull_request.draft == false
name: Run Test E2E
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Checkout API Git repository
uses: actions/checkout@v4
with:
repository: getlago/lago-api
ref: ${{ github.event.inputs.api_branch }}
path: api
- name: Build Front local image
run: |
docker build -t getlago/front:ci ./
- name: Build API local image
run: |
docker build -t getlago/api:ci ./api
- name: Generate API RSA Key
run: |
echo "LAGO_RSA_PRIVATE_KEY=\"`openssl genrsa 2048 | base64`\"" >> .env
- name: Launch APP + API
env:
LAGO_LICENSE: ${{ secrets.LAGO_LICENSE }}
run: |
docker compose -f ./ci/docker-compose.ci.yml --env-file ./.env up -d db redis api front
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cypress run
uses: cypress-io/github-action@v6
with:
browser: chrome
record: false
config-file: ./cypress/cypress.config.js
config: baseUrl=http://localhost,viewportHeight=800,viewportWidth=1280,video=true
spec: |
cypress/e2e/00-auth/*
cypress/e2e/10-resources/*
cypress/e2e/t10-*
cypress/e2e/t20-*
cypress/e2e/t30-*
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore
- name: Upload videos
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore