Skip to content

Commit

Permalink
minor fixes to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed May 2, 2024
1 parent 03e5ede commit 839b198
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/test_bootnodes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: daily bootnode validity test
name: Bootnode validity test

on:
schedule:
Expand All @@ -22,27 +22,27 @@ jobs:
image: ubuntu:latest

steps:
- name: checkout code
- name: Checkout code
uses: actions/checkout@v4

- name: setup environment
- name: Setup environment
run: |
apt-get update
apt-get install -y jq curl
- name: prepare polkadot binary
- name: Prepare polkadot binary
run: |
curl -L https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.10.0/polkadot -o polkadot
chmod +x polkadot
mv polkadot /usr/local/bin/
- name: prepare polkadot-parachain binary
- name: Prepare polkadot-parachain binary
run: |
curl -L https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-parachain-v1.10.1/polkadot-parachain -o polkadot-parachain
chmod +x polkadot-parachain
mv polkadot-parachain /usr/local/bin/
- name: test bootnode integrity
- name: Test bootnode integrity
run: bash ./scripts/test_bootnodes.sh

- run: bash ./scripts/missing_bootnodes.sh > /tmp/bootnode_tests/missing_bootnodes.json
Expand All @@ -51,11 +51,8 @@ jobs:
- run: bash ./scripts/broken_bootnodes.sh > /tmp/bootnode_tests/broken_bootnodes.json
- run: cat /tmp/bootnode_tests/broken_bootnodes.json

- name: tar test results
run: tar -czvf /tmp/results.tar.gz /tmp/bootnode_tests

- name: archive test results
uses: actions/upload-artifact@v4
with:
name: bootnode-test-results
path: /tmp/results.tar.gz
path: /tmp/bootnode_tests
13 changes: 8 additions & 5 deletions .github/workflows/test_endpoints.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Daily endpoint validity test
name: Endpoint validity test

on:
schedule:
Expand Down Expand Up @@ -36,11 +36,14 @@ jobs:
cd scripts/gavel
cargo build --release --locked
- run: bash ./scripts/test_endpoints.sh
- name: Produce /tmp/endpoint_tests/results.json
run: bash ./scripts/test_endpoints.sh

- run: bash ./scripts/missing_endpoints.sh
- name: Produce /tmp/endpoint_tests/missing.json
run: bash ./scripts/missing_endpoints.sh

- uses: actions/upload-artifact@v4
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: endpoint-test-results
path: /tmp/endpoint_tests/results.json
path: /tmp/endpoint_tests

0 comments on commit 839b198

Please sign in to comment.