diff --git a/.github/workflows_v1/aspect-test.yaml b/.github/workflows_v1/aspect-test.yaml deleted file mode 100644 index 4198169e..00000000 --- a/.github/workflows_v1/aspect-test.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# name: Aspect Test - -# on: -# push: -# branches: [ ci_test ] -# pull_request: -# branches: [ ci_test ] -# workflow_dispatch: -# inputs: -# logLevel: -# description: 'Log level' -# required: true -# default: 'warning' -# tags: -# description: 'Test scenario tags' -# required: false - -# jobs: -# type-check: -# uses: ./.github/workflows/reuseable-aspect-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "type-check-aspect.test.js" -# key_privateKey: "0xb4f7eb534165f83025bc30f0add655805d9da066ef2bca04e59fb6f74c38acb8" -# key_attack_accounts: "" -# key_aspect_accounts: "" - -# cross-phase-property: -# uses: ./.github/workflows/reuseable-aspect-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "cross-phase-property.test.js" -# key_attack_accounts: "0xc107af871261252e19185507a416efc753b4255f05ff2a2f7e54eee3f68968c7" -# key_privateKey: "0xa1e399c54e92cc32a19fb10e41467ee5a67c08a922600f8dd3774e375c868c33" -# key_aspect_accounts: "0x4d372700bec7a86e3b5388685f92806234931bc018c02fe4b52d5c56df317f8en" - -# cross-phase-state: -# uses: ./.github/workflows/reuseable-aspect-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "cross-phase-state.test.js" -# key_attack_accounts: "0x37fdcc21797ca54da32a07a81a50750b40be2438c99ba73effe3c5c1c50d7cd9" -# key_privateKey: "0x08a144f99aeae08b9582eef04c82f51528d6fc9ac0680ce4f967b872bbb3ab0e" -# key_aspect_accounts: "0x7e026200e55f7fd162ba0bc8dbb8ae5e37c11ebf808c7981c4eba3aa6fe4c91c" - -# context-aspect: -# uses: ./.github/workflows/reuseable-aspect-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "context-aspect.test.js" -# key_attack_accounts: "" -# key_privateKey: "0x6b8fdf2fe277f04f2b4b79695cac237e6bfcfa711f8d374404d4fbb1e8891865" -# key_aspect_accounts: "" - -# context-perm-check: -# uses: ./.github/workflows/reuseable-aspect-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "context-permission-check.test.js" -# key_attack_accounts: "" -# key_privateKey: "0x91f6dc1e7bd0d5c1b2810865825bfaa926062a5d0f8f608019efc051365b8c91" -# key_aspect_accounts: "" - - -# # name: Manual workflow -# # on: -# # workflow_dispatch: -# # inputs: -# # logLevel: -# # description: 'Log level' -# # required: true -# # default: 'warning' -# # tags: -# # description: 'Test scenario tags' -# # required: false -# # jobs: -# # build: -# # runs-on: ubuntu-latest -# # steps: -# # - uses: actions/checkout@v2 -# # - name: Run a one-line script -# # run: echo Hello, world! \ No newline at end of file diff --git a/.github/workflows_v1/jsonrpc-test.yaml b/.github/workflows_v1/jsonrpc-test.yaml deleted file mode 100644 index 16ab331c..00000000 --- a/.github/workflows_v1/jsonrpc-test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# name: JsonRPC Test -# # Test cases for json-rpc - -# on: -# push: -# branches: [ ci_test ] -# pull_request: -# branches: [ ci_test ] - -# jobs: -# jsonrpc-ci-call: -# uses: ./.github/workflows/reuseable-jsonrpc-test.yaml -# with: -# test_node_addr: "http://47.254.27.97:8545" -# test_script: "ci_call.cjs" -# key_privateKey: "0x8778bb32408d744cfc2c9da02499783b65d0261895acb3e27e0b4f63c07f9329" \ No newline at end of file diff --git a/.github/workflows_v1/reuseable-aspect-test.yaml b/.github/workflows_v1/reuseable-aspect-test.yaml deleted file mode 100644 index 58b442aa..00000000 --- a/.github/workflows_v1/reuseable-aspect-test.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Reusable Aspect Test - -on: - workflow_call: - inputs: - test_node_addr: - required: true - type: string - test_script: - required: true - type: string - key_attack_accounts: - required: true - type: string - key_privateKey: - required: true - type: string - key_aspect_accounts: - required: true - type: string - -jobs: - test-job: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Aspect Test - run: | - mkdir -p test_scripts - cat > test_scripts/init_env.sh < attack_accounts.txt - # key2 - echo '${{ inputs.key_privateKey }}' > privateKey.txt - # key3 - echo '${{ inputs.key_aspect_accounts }}' > aspect_accounts.txt - - cd tests - node ${{ inputs.test_script }} - - EOF - chmod +x test_scripts/init_env.sh - docker run --name testenv -v $(pwd)/test_scripts:/test_scripts -i simonalphafang/aspect-tooling:0.0.4 /bin/bash -c /test_scripts/init_env.sh \ No newline at end of file diff --git a/.github/workflows_v1/reuseable-jsonrpc-test.yaml b/.github/workflows_v1/reuseable-jsonrpc-test.yaml deleted file mode 100644 index 955e05d3..00000000 --- a/.github/workflows_v1/reuseable-jsonrpc-test.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Reusable JsonRPC Test - -on: - workflow_call: - inputs: - test_node_addr: - required: true - type: string - test_script: - required: true - type: string - key_privateKey: - required: true - type: string - -jobs: - test-job: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Aspect Test - run: | - mkdir -p ci_scripts - cat > ci_scripts/init_env.sh < privateKey.txt - - node ${{ inputs.test_script }} - - EOF - chmod +x ci_scripts/init_env.sh - docker run --name testenv -v $(pwd)/ci_scripts:/ci_scripts -i simonalphafang/artela-jsonrpc-testenv:0.0.1 /bin/bash -c /ci_scripts/init_env.sh \ No newline at end of file