Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pranshi06 committed Mar 22, 2024
1 parent 2e5187d commit 5ec584a
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,33 @@ jobs:

- name: Start Azure Cosmos DB emulator
run: docker run --detach --publish 8081:8081 --publish 10250-10255:10250-10255 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest

- name: Setup database
# working-directory: script
run: sleep 100 && cd cosmos/script && npm install --save @azure/cosmos && node app.js
run: |
sleep 100
cd cosmos/script
npm install --save @azure/cosmos
node app.js
- name: Build connector
run: cd cosmos && npm install --save @azure/cosmos && npm i -g rimraf && npm run build
run: |
cd cosmos
npm install --save @azure/cosmos
npm i -g rimraf && npm run build
- name: Start connector
run: |
cd cosmos
export HASURA_CONFIGURATION_DIRECTORY="./connector_config_emulator.json"
npm run start serve --configuration connector_config_emulator.json &
- name: Check out ndc-spec
- name: Checkout ndc-spec
uses: actions/checkout@v3
with:
repository: hasura/ndc-spec
path: ndc-spec
# - name: test
# working-directory: ndc-spec
# run: |
# ls
# echo "hello"
# cd ..
# ls
# tree

- name: Run ndc-test
working-directory: ndc-spec
# run: cargo run --bin ndc-test -- replay --endpoint http://0.0.0.0:8080 --snapshots-dir ../cosmos/ndc-test-snapshots
run: cargo run --bin ndc-test -- test --endpoint http://0.0.0.0:8080
# - name: Install test runner
# run: npm install --global mocha
# - name: Run Node.js tests
# run: mocha

0 comments on commit 5ec584a

Please sign in to comment.