Skip to content

Commit

Permalink
chore: add era-test-node-action to ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Sep 15, 2023
1 parent be53aec commit 5f761cf
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing era_test_node using e2e
name: run
on:
workflow_call:

Expand All @@ -11,30 +11,16 @@ jobs:
with:
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: era_test_node-ubuntu-latest.tar.gz

- name: Start the era_test_node
id: start_node
run: |
echo "Extracting era_test_node binary"
tar -xzf era_test_node-ubuntu-latest.tar.gz
chmod +x era_test_node
echo "Starting node in background"
./era_test_node run 2>&1 | tee era_test_node_ouput.log &
echo "PID=$!" >> $GITHUB_ENV
- name: Run Era Test Node
uses: dutterbutter/era-test-node-action@latest

- name: Launch tests
id: launch
run: |
echo "Run tests"
make test-e2e
- name: Stop the era_test_node and print output logs
id: stop_node
- name: Print output logs
if: always()
run: |
cat era_test_node_ouput.log
kill $PID

0 comments on commit 5f761cf

Please sign in to comment.