feat(analytics) add dashboards graphs #2919
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
token: ${{ secrets.GH_TOKEN }} | |
- 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: Launch APP + API | |
env: | |
LAGO_RSA_PRIVATE_KEY: ${{ secrets.LAGO_RSA_PRIVATE_KEY }} | |
LAGO_LICENSE: ${{ secrets.LAGO_LICENSE }} | |
run: | | |
docker-compose -f ./ci/docker-compose.ci.yml 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 | |
env: | |
CYPRESS_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
with: | |
browser: chrome | |
record: false | |
config: baseUrl=http://localhost,viewportHeight=99999,viewportWidth=1280 | |
spec: | | |
cypress/e2e/00-auth/* | |
cypress/e2e/10-resources/* | |
cypress/e2e/t10-* | |
cypress/e2e/t20-* | |
cypress/e2e/t30-* |