Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekgsharma committed Jul 16, 2024
1 parent f38c0aa commit ec07831
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/local-network/action.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: "Start local network"
description: "Setup and start dashmate local network"
inputs:
Expand Down Expand Up @@ -41,11 +42,12 @@ runs:
key: local-network-volumes/${{ steps.dashmate-fingerprint.outputs.sha }}

- name: Restore dashmate volumes
run: ./scripts/dashmate/volumes/restore.sh
shell: bash
run: ./scripts/dashmate/volumes/restore.sh
if: steps.local-network-data.outputs.cache-hit == 'true'

- name: Setup local network
shell: bash
run: |
set -ex
Expand All @@ -58,12 +60,11 @@ runs:
./scripts/setup_local_network.sh
./scripts/configure_test_suite.sh
./scripts/configure_dotenv.sh
shell: bash
if: steps.local-network-data.outputs.cache-hit != 'true'

- name: Dump dashmate volumes
run: ./scripts/dashmate/volumes/dump.sh
shell: bash
run: ./scripts/dashmate/volumes/dump.sh
if: steps.local-network-data.outputs.cache-hit != 'true'

- name: Save local network data
Expand Down Expand Up @@ -94,11 +95,13 @@ runs:
cat /home/ubuntu/.dashmate/config.json
- name: Print Docker containers before network start
shell: bash
run: |
echo "Printing Docker containers before network start..."
docker ps -a
- name: Print Docker networks before network start
shell: bash
run: |
echo "Printing Docker networks before network start..."
docker network ls
Expand All @@ -108,3 +111,4 @@ runs:
run: yarn start
env:
DEBUG: 1

0 comments on commit ec07831

Please sign in to comment.