Skip to content

Commit

Permalink
testing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-terrier committed Jun 19, 2023
1 parent d745141 commit f2f1552
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit f2f1552

Please sign in to comment.