Skip to content

Commit

Permalink
Merge branch 'main' into revert-jsonrpc-type
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchengzhu authored Sep 21, 2023
2 parents 8416262 + 9d8137c commit edb0353
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 21 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/openzeppelin_test_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache of the axon binary
- name: Cache of Cargo
uses: actions/cache@v3
with:
path: |
target/debug/axon
target/release/axon
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Axon in the development profile
run: cargo build

- name: Deploy Local Network of Axon
run: |
Expand All @@ -117,6 +122,18 @@ jobs:
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
- name: Check Axon Status Before Test
run: |
response=$(curl -s -w "\n%{http_code}" http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}')
http_code=$(echo "$response" | tail -n1)
response_body=$(echo "$response" | sed '$d')
if [[ "$http_code" -ne 200 ]]; then
echo "Axon status check failed with HTTP status code: $http_code"
exit 1
else
echo "$response_body"
fi
- name: Run prepare
id: runtest
run: |
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/openzeppelin_test_16_19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache of the axon binary
- name: Cache of Cargo
uses: actions/cache@v3
with:
path: |
target/debug/axon
target/release/axon
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Axon in the development profile
run: cargo build

- name: Deploy Local Network of Axon
run: |
Expand All @@ -117,6 +122,18 @@ jobs:
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
- name: Check Axon Status Before Test
run: |
response=$(curl -s -w "\n%{http_code}" http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}')
http_code=$(echo "$response" | tail -n1)
response_body=$(echo "$response" | sed '$d')
if [[ "$http_code" -ne 200 ]]; then
echo "Axon status check failed with HTTP status code: $http_code"
exit 1
else
echo "$response_body"
fi
- name: Run prepare
id: runtest
run: |
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/openzeppelin_test_1_5_and_12_15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache of the axon binary
- name: Cache of Cargo
uses: actions/cache@v3
with:
path: |
target/debug/axon
target/release/axon
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Axon in the development profile
run: cargo build

- name: Deploy Local Network of Axon
run: |
Expand All @@ -118,6 +123,18 @@ jobs:
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
- name: Check Axon Status Before Test
run: |
response=$(curl -s -w "\n%{http_code}" http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}')
http_code=$(echo "$response" | tail -n1)
response_body=$(echo "$response" | sed '$d')
if [[ "$http_code" -ne 200 ]]; then
echo "Axon status check failed with HTTP status code: $http_code"
exit 1
else
echo "$response_body"
fi
- name: Run prepare
id: runtest
run: |
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/openzeppelin_test_6_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache of the axon binary
- name: Cache of Cargo
uses: actions/cache@v3
with:
path: |
target/debug/axon
target/release/axon
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Axon in the development profile
run: cargo build

- name: Deploy Local Network of Axon
run: |
Expand All @@ -116,6 +121,19 @@ jobs:
./target/debug/axon run \
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
- name: Check Axon Status Before Test
run: |
response=$(curl -s -w "\n%{http_code}" http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}')
http_code=$(echo "$response" | tail -n1)
response_body=$(echo "$response" | sed '$d')
if [[ "$http_code" -ne 200 ]]; then
echo "Axon status check failed with HTTP status code: $http_code"
exit 1
else
echo "$response_body"
fi
- name: Run prepare
id: runtest
run: |
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/v3_core_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,21 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.x

- id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache of the axon binary
- name: Cache of Cargo
uses: actions/cache@v3
with:
path: |
target/debug/axon
target/release/axon
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-axon-${{ github.sha }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Axon in the development profile
run: cargo build

- name: Deploy Local Network of Axon
run: |
Expand All @@ -105,6 +109,19 @@ jobs:
./target/debug/axon run \
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
- name: Check Axon Status Before Test
run: |
response=$(curl -s -w "\n%{http_code}" http://localhost:8000 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}')
http_code=$(echo "$response" | tail -n1)
response_body=$(echo "$response" | sed '$d')
if [[ "$http_code" -ne 200 ]]; then
echo "Axon status check failed with HTTP status code: $http_code"
exit 1
else
echo "$response_body"
fi
- name: Install dependencies
run: |
cd /home/runner/work/axon/axon/v3-core
Expand Down

0 comments on commit edb0353

Please sign in to comment.