Giter Club home page Giter Club logo

Comments (5)

MikeMcC399 avatar MikeMcC399 commented on June 2, 2024

@ydennisy

Could you share your workflow?

from github-action.

ydennisy avatar ydennisy commented on June 2, 2024

@MikeMcC399 sure thanks for the speedy reply!

name: "[Studio] E2E test"

on:
  pull_request:
    branches:
      - main
      - develop
    paths:
      - app/**
      - backend/**
    types:
      - opened
      - reopened
      - ready_for_review

  workflow_dispatch: {}

jobs:
  test-app-e2e:
    name: Run e2e tests
    if: ${{ github.event.pull_request.draft == false && (contains(github.head_ref, 'release/') && github.base_ref == 'develop') == false}}
    runs-on: ubuntu-latest-m
    strategy:
      fail-fast: false
      matrix:
        containers:
          [1, 2, 3, 4]
    env:
      GCP_PROJECT: ******
      GCP_REGION: europe-west1
      GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS_DEV }}
    
    steps:
      - name: Checkout repo
        uses: actions/checkout@v4

      - name: Install node v20
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Setup Google Cloud Auth
        id: auth
        uses: google-github-actions/auth@v2
        with:
          credentials_json: ${{ env.GCP_CREDENTIALS }}

      - name: Setup Google Cloud
        uses: google-github-actions/setup-gcloud@v2

      - name: Install & start supabase
        working-directory: backend
        run: |
          wget https://github.com/supabase/cli/releases/download/v1.136.3/supabase_1.136.3_linux_amd64.deb
          sudo dpkg -i supabase_1.136.3_linux_amd64.deb
          supabase start -x imgproxy,edge-runtime,studio,storage-api

      - name: Install frontend deps
        working-directory: app
        run: npm ci

      - name: Install backend deps, build, seed & run
        working-directory: backend
        run: |
          npm ci
          npm run build
          npm run prisma:seed
          npm start &
        env:
          .... removed

      - name: Run e2e tests
        uses: cypress-io/github-action@v6
        with:
          config-file: cypress.ci.ts
          config: '{"e2e": { "excludeSpecPattern": [ "cypress/e2e/xandr/**/*.e2e.ts", "cypress/e2e/**/google.e2e.ts","cypress/e2e/smoke/**/*.e2e.ts"] }}'
          browser: chrome
          # we have already installed all dependencies above
          install: false
          start: npm run dev
          working-directory: app
          record: true
          parallel: true
          group: "FullE2E"
          wait-on: http://localhost:3000,http://localhost:8000/app-backend/api/health
          wait-on-timeout: 120

        env:
          HOSTNAME: localhost
          PORT: 3000
          HTTPS: false
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
          COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
          ENV_NAME: testing
          .... removed

from github-action.

MikeMcC399 avatar MikeMcC399 commented on June 2, 2024

@ydennisy

I don't see anything wrong in your workflow.

Check #879 (comment) to see if the suggestions for starting Vite help you. I'm not sure from your problem description if this will be the solution, but I suggest that you check it out first.

from github-action.

MikeMcC399 avatar MikeMcC399 commented on June 2, 2024

Hello @ydennisy

Did you make any progress?

from github-action.

MikeMcC399 avatar MikeMcC399 commented on June 2, 2024

Closing due to inactivity.

from github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.