Skip to content

Commit

Permalink
chore: wait on all services in action
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed Nov 22, 2024
1 parent ba631d6 commit ac019bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ jobs:
- name: Start services using Docker Compose
run: docker compose -f docker-compose.test.yml up -d

- name: Wait for services to start
run: pnpm wait-on http://localhost:8055 && pnpm wait-on http://localhost:8080

- name: Run tests
run: pnpm test:ci
run: pnpm test
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"dev": "directus-extension build -w --no-minify",
"lint": "eslint .",
"release": "changeset publish",
"test": "vitest run",
"test:ci": "wait-on http://localhost:8055 && vitest run"
"test": "vitest run"
},
"dependencies": {
"axios": "1.7.7",
Expand Down

0 comments on commit ac019bc

Please sign in to comment.