Skip to content

Commit

Permalink
ci: seed database
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Feb 13, 2024
1 parent 4a97e42 commit f23a7d9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.21.7'
- name: Install k6
run: curl https://github.com/grafana/k6/releases/download/v0.49.0/k6-v0.49.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
- run: go build .
- run: ./ad-service & sleep 5 && disown
- run: ./ad-service & sleep 5 && go run scripts/seed.go 2500 && ./k6 run -u 100 scripts/stress.js
env:
GIN_MODE: release
MONGODB_URI: mongodb://user:password@mongo:27017
- name: Run k6 test
uses: grafana/k6-action@v0.3.1
with:
filename: scripts/stress.js
flags: --vus 100 --duration 10s

0 comments on commit f23a7d9

Please sign in to comment.