Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into statemine
Browse files Browse the repository at this point in the history
* origin/master: (53 commits)
  add new audit report
  Use ExitReason::Revert instead of ExitReason::Error (#1772)
  Claim Account to use Eip-712 (#1755)
  Benchmark evm (#1674)
  support evm create rpc and allow H160 default (#1771)
  Update template files license header. (#1770)
  Fix collect_fee (#1766)
  handle nonce for eth tx (#1707)
  updated to the ORML's test coverage file (#1760)
  rm runtime upgrade (#1757)
  Happy new year 2022. (#1761)
  Excluded some files from test coverage (#1759)
  XCM: add deposit error handler for multi-currency adapter. (#1756)
  update stable asset (#1758)
  Fix test coverage for acala (#1590)
  Fix collect_fee (#1754)
  Update HEADER-GPL3
  Update extrinsic-ordering-check-from-bin.yml (#1752)
  Update HEADER-GPL3
  bump version (#1751)
  ...
  • Loading branch information
Roy Yang committed Jan 13, 2022
2 parents e3014cc + dcd6945 commit 5852155
Show file tree
Hide file tree
Showing 403 changed files with 13,398 additions and 8,326 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Tests Coverage

on:
workflow_dispatch:
pull_request:
branches:
- master
paths-ignore:
- '**/README.md'
push:
branches:
- master
paths-ignore:
- '**/README.md'

env:
TARPAULIN_VERSION: 0.18.5
LIBCLANG_PATH: "/usr/lib/llvm-10/lib"
SCCACHE_CACHE_SIZE: "100G"
CARGO_INCREMENTAL: 0
jobs:
test:
name: Coverage Report
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
# Only cancel non-master branch runs
if: ${{ github.ref != 'refs/heads/master' }}
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-11-07
components: rustfmt
target: wasm32-unknown-unknown
default: true
- name: Install additional dependencies
run: |
sudo apt update -y &&
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: ${{ env.TARPAULIN_VERSION }}
timeout: 900
out-type: Xml
args: '--avoid-cfg-tarpaulin --no-fail-fast --workspace
-e acala-inspect
acala acala-cli e2e-tests acala-service
acala-primitives
acala-rpc
acala-runtime runtime-common runtime-integration-tests karura-runtime mandala-runtime
--exclude-files */mock.rs */weights.rs'
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
56 changes: 0 additions & 56 deletions .github/workflows/coverage.yml.disabled

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/extrinsic-ordering-check-from-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
echo "-------------------------------------------" >> output.txt
- name: Start local node
run: ./target/release/acala --chain=${{ env.CHAIN }}-dev --rpc-cors=all --ws-external --tmp &
run: ./target/release/acala --chain=${{ env.CHAIN }}-dev --rpc-cors=all --ws-external --tmp & pid=$!

- name: Compare the metadata
run: |
Expand All @@ -67,7 +67,7 @@ jobs:
sed -z -i 's/\n\n/\n/g' output.txt
- name: Stop our local node
run: pkill acala
run: kill $pid

- name: Show result
run: cat output.txt
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "stable-asset"]
path = ecosystem-modules/stable-asset
url = https://github.com/nutsfinance/stable-asset.git
[submodule "evm-bench"]
path = evm-bench
url = https://github.com/AcalaNetwork/evm-bench.git
Loading

0 comments on commit 5852155

Please sign in to comment.