Skip to content

Commit

Permalink
chore: added new postman tests (cardano-foundation#547)
Browse files Browse the repository at this point in the history
* chore: added new postman tests
  • Loading branch information
Kammerlo authored Mar 4, 2024
1 parent d08fa45 commit c85f87b
Show file tree
Hide file tree
Showing 18 changed files with 14,823 additions and 503 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Lint and test
working-directory: ./cardano-rosetta/cardano-rosetta-server
run: |
yarn install --offline --frozen-lockfile --logevel=error
yarn install --offline --frozen-lockfile --loglevel=error
yarn lint
yarn test
env:
Expand All @@ -42,8 +42,16 @@ jobs:
with:
build-context: ${{ github.workspace }}/cardano-rosetta
tag: ${{ github.sha }}
# - name: Smoke test Cardano Rosetta image
# uses: ./cardano-rosetta/.github/actions/smoke_test_cardano_rosetta
# with:
# tag: ${{ github.sha }}
# test-exe: ./cardano-rosetta/test/smoke_test.sh
- name: Start-container
run: docker run --rm -d -p 8080:8080 cardano-rosetta:${{ github.sha }}
- name: Wait for docker to start
run: sleep 60
- name: "Install Node"
uses: actions/setup-node@v1
with:
node-version: '21.x'
- name: "Install newman"
run: npm install -g newman
- name: "Run tests"
working-directory: ./cardano-rosetta
run: newman run ./test/deployed-environment-test/rosetta-java.postman_collection.json -e ./test/deployed-environment-test/environments/mainnet-typescript.postman_environment.json -r cli
44 changes: 0 additions & 44 deletions .github/workflows/deployed_environment-test.yml

This file was deleted.

Loading

0 comments on commit c85f87b

Please sign in to comment.