Skip to content

Commit

Permalink
update tests.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Feb 25, 2021
1 parent 339ac9a commit 6074c29
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,33 @@ jobs:
path: ~/node-db-nightly-docker
key: ${{ runner.os }}-node-db-tests-docker-${{ hashFiles('**/protocolMagicId') }}

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Install dependencies
run: bundle install

- name: Get recent configs
run: bundle exec rake get_latest_configs["testnet"]

- name: Set up cardano-wallet and cardano-node
run: |
echo "Wallet: $WALLET"
echo "Node: $NODE"
NODE_CONFIG_PATH=`pwd`/spec/testnet docker-compose -f docker-compose-shelley.yml up --detach
NODE_CONFIG_PATH=`pwd`/configs docker-compose up --detach
docker run --rm inputoutput/cardano-wallet:$WALLET version
docker run --rm inputoutput/cardano-node:$NODE version
ls ~/node-db-nightly-docker
- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Install dependencies
run: bundle install

- name: Run all tests except nighlty
run: rspec . -t ~nightly

- name: Stop docker-compose
run: NODE_CONFIG_PATH=`pwd`/spec/testnet docker-compose -f docker-compose-shelley.yml down
run: NODE_CONFIG_PATH=`pwd`/configs docker-compose down
env:
CI: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
TOKEN_METADATA: http://metadata-server-mock.herokuapp.com/
NETWORK: testnet
WALLET: dev-master-shelley
NODE: 1.25.1

0 comments on commit 6074c29

Please sign in to comment.