1 name: "Test server"
2 description: "Test the currently running medusa server to see if a user has been created"
3
4 inputs:
5 email:
6 description: "email of user to log in"
7 required: false
8 default: "test@test.com"
9 password:
10 description: "password of user to log in"
11 required: false
12 default: "password"
13 # TODO: Add back seed test
14 # pathToSeedData:
15 # description: "path to seed data"
16 # required: false
17 # default: "../cli-test/data/seed.json"
18
19 runs:
20 using: "composite"
21 steps:
22 - name: Wait for live server response
23 shell: "bash"
24 run: bash ./integration-tests/scripts/cli/wait-for-server-live.sh
25 - name: Log in with user
26 shell: "bash"
27 env:
28 TEST_EMAIL: ${{ inputs.email }}
29 TEST_PASSWORD: ${{ inputs.password }}
30 run: bash ./integration-tests/scripts/cli/login.sh "$TEST_EMAIL" "$TEST_PASSWORD"
31 # - name: GetProducts
32 # shell: "bash"
33 # run: ./integration-tests/scripts/cli/get-products.sh ${{ inputs.pathToSeedData }}
34
35 - name: Kill server
36 shell: "bash"
37 run: kill -9 $(lsof -t -i :9000)