From 839b198448639bb48f4a2f11a33da6c0af35799a Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Fri, 3 May 2024 02:41:23 +0700 Subject: [PATCH] minor fixes to workflows --- .github/workflows/test_bootnodes.yaml | 17 +++++++---------- .github/workflows/test_endpoints.yaml | 13 ++++++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test_bootnodes.yaml b/.github/workflows/test_bootnodes.yaml index 10fd562..b7f6970 100644 --- a/.github/workflows/test_bootnodes.yaml +++ b/.github/workflows/test_bootnodes.yaml @@ -1,4 +1,4 @@ -name: daily bootnode validity test +name: Bootnode validity test on: schedule: @@ -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 @@ -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 diff --git a/.github/workflows/test_endpoints.yaml b/.github/workflows/test_endpoints.yaml index a363907..4650856 100644 --- a/.github/workflows/test_endpoints.yaml +++ b/.github/workflows/test_endpoints.yaml @@ -1,4 +1,4 @@ -name: Daily endpoint validity test +name: Endpoint validity test on: schedule: @@ -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