Skip to content

Commit

Permalink
test: clean gatsby data
Browse files Browse the repository at this point in the history
  • Loading branch information
jayavel-testsigma committed Aug 23, 2024
1 parent faa6db6 commit 04430b3
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ jobs:
run: |
sleep 20
until $(curl --output /dev/null --silent --head --fail http://localhost:8000); do
curl -v http://localhost:8000
sleep 2
sleep 1
done
sleep 300
curl -v http://localhost:8000/___graphql
- name: Run indexing script
run: npm run index
npm run index
env:
TYPESENSE_HOST: ${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }}
TYPESENSE_PORT: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }}
Expand All @@ -85,5 +80,15 @@ jobs:
TYPESENSE_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_API_KEY }}
TYPESENSE_SEARCH_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }}

# - name: Run indexing script
# run: npm run index
# env:
# TYPESENSE_HOST: ${{ secrets.WEBSITE_STAGING_TYPESENSE_HOST }}
# TYPESENSE_PORT: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PORT }}
# TYPESENSE_PROTOCOL: ${{ secrets.WEBSITE_STAGING_TYPESENSE_PROTOCOL }}
# TYPESENSE_COLLECTION: ${{ secrets.WEBSITE_STAGING_TYPESENSE_COLLECTION }}
# TYPESENSE_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_API_KEY }}
# TYPESENSE_SEARCH_API_KEY: ${{ secrets.WEBSITE_STAGING_TYPESENSE_SEARCH_API_KEY }}

- name: Stop Gatsby server
run: lsof -i :8000 -t | xargs kill

0 comments on commit 04430b3

Please sign in to comment.