Skip to content

Commit

Permalink
Adding k6 to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Apr 3, 2024
1 parent ba951ab commit 2d27a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/k6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
uses: actions/checkout@v1

- name: Start containers
run: docker compose -f docker-compose.k6.workflows.yml run k6-tracetest
run: docker compose -f docker-compose.k6.workflows.yml up -d
env:
TRACETEST_API_TOKEN: ${{secrets.TRACETEST_TOKEN}}
POKESHOP_DEMO_URL: ${{secrets.POKESHOP_DEMO_URL}}

- name: Stop containers
if: always()
run: docker compose docker-compose.k6.workflows.yml down
run: docker compose -f docker-compose.k6.workflows.yml down
3 changes: 0 additions & 3 deletions docker-compose.k6.workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ services:
environment:
XK6_TRACETEST_API_TOKEN: ${TRACETEST_API_TOKEN}
POKESHOP_DEMO_URL: ${POKESHOP_DEMO_URL}
depends_on:
- worker
- api
volumes:
- ./test/k6/add-pokemon.js:/import-pokemon.js

0 comments on commit 2d27a1f

Please sign in to comment.