Skip to content

Commit

Permalink
Update cypress-e2e-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
funtigr authored May 16, 2024
1 parent 0ccc834 commit b798b2e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/cypress-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Run lint
run: npm run lint

- name: Run App build
run: npm run build
# - name: Run App build
# run: npm run build

# - name: Run App
# run: npm start
Expand All @@ -35,17 +35,21 @@ jobs:
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
docker compose version
- name: Run E2E tests
- name: Setup Localdev Environment
run: |
npm start
mkdir -p ./localdev/mnt/mongodb
mkdir -p ./localdev/mnt/postgres
export MACHINE_HOST_IP=$(hostname -I | awk '{print $1}')
~/.docker/cli-plugins/docker-compose -f localdev/docker-compose.yml -f localdev/docker-compose-ci.yml up -d
node_modules/.bin/wait-on http://localhost:8080/health/ready --timeout 120000
cp .env.example .env.test
npx cypress run
~/.docker/cli-plugins/docker-compose -f localdev/docker-compose.yml -f localdev/docker-compose-ci.yml down
sudo rm -rf ./localdev/mnt
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start

0 comments on commit b798b2e

Please sign in to comment.