From f2f1552e3e98073f029320052c4ca3ba33f34008 Mon Sep 17 00:00:00 2001 From: Leo Terrier Date: Mon, 19 Jun 2023 17:39:17 +0200 Subject: [PATCH] testing github actions --- .github/workflows/main.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62c520c..99f21f8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: working-directory: back - name: Run backend server working-directory: back - run: node index.js + run: node index.js & env: IS_DEV: true NEXT_PUBLIC_IS_DEV: true @@ -29,13 +29,13 @@ jobs: NEXT_PUBLIC_GEOCODING: ${{secrets.NEXT_PUBLIC_GEOCODING}} NEXT_PUBLIC_GMAP: ${{secrets.NEXT_PUBLIC_GMAP}} PORT: ${{secrets.PORT}} - - name: Install frontend dependencies - uses: bahmutov/npm-install@v1 + - name: E2E tests + uses: cypress-io/github-action@v5 with: working-directory: front - - name: Run frontend - working-directory: front - run: node index.js + start: npm run dev + wait-on: 'http://localhost:3000' + record: true env: IS_DEV: true NEXT_PUBLIC_IS_DEV: true @@ -50,13 +50,13 @@ jobs: NEXT_PUBLIC_GEOCODING: ${{secrets.NEXT_PUBLIC_GEOCODING}} NEXT_PUBLIC_GMAP: ${{secrets.NEXT_PUBLIC_GMAP}} PORT: ${{secrets.PORT}} - - name: E2E tests + - name: unit tests uses: cypress-io/github-action@v5 with: install: false working-directory: front - wait-on: 'http://localhost:3000' record: true + component: true env: IS_DEV: true NEXT_PUBLIC_IS_DEV: true @@ -71,10 +71,3 @@ jobs: NEXT_PUBLIC_GEOCODING: ${{secrets.NEXT_PUBLIC_GEOCODING}} NEXT_PUBLIC_GMAP: ${{secrets.NEXT_PUBLIC_GMAP}} PORT: ${{secrets.PORT}} - - name: unit tests - uses: cypress-io/github-action@v5 - with: - install: false - working-directory: front - record: true - component: true