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 88b0a17 commit e8a3c5e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: E2E tests
- name: Install root dependencies
uses: bahmutov/npm-install@v1
- name: Start server in the background
run: npm run dev &
- name: Unit tests
uses: cypress-io/github-action@v5
with:
working-directory: ./front
start: npm run dev, node index.js --prefix ../back
wait-on: 'http://localhost:3000'
record: true
working-directory: front
component: true
env:
CYPRESS_RECORD_KEY: ${{secrets.CYPRESS_RECORD_KEY}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -28,11 +30,13 @@ jobs:
NEXT_PUBLIC_GEOCODING: ${{secrets.NEXT_PUBLIC_GEOCODING}}
NEXT_PUBLIC_GMAP: ${{secrets.NEXT_PUBLIC_GMAP}}
PORT: ${{secrets.PORT}}
- name: Unit tests
- name: E2E tests
uses: cypress-io/github-action@v5
with:
install: false
working-directory: front
component: true
wait-on: 'http://localhost:3000'
record: true
env:
CYPRESS_RECORD_KEY: ${{secrets.CYPRESS_RECORD_KEY}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit e8a3c5e

Please sign in to comment.