From 9fc1dad0cafbc0e582bdbe917513f6b18c4423d8 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Fri, 3 Feb 2023 00:52:33 +0800 Subject: [PATCH] Add evm checks (#252) * Add evm checks Signed-off-by: Xavier Lau * Fix --------- Signed-off-by: Xavier Lau --- .github/workflows/checks.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index d6bd702e..b97dafdc 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -45,8 +45,8 @@ jobs: run: | export SCCACHE_FILE=sccache-${{ env.SCCACHE_VERSION }}-x86_64-unknown-linux-musl curl -L ${{ env.SCCACHE_LINK }}/${{ env.SCCACHE_VERSION }}/$SCCACHE_FILE.tar.gz | tar xz + chmod u+x $SCCACHE_FILE/sccache sudo mv $SCCACHE_FILE/sccache /usr/bin - sudo chmod u+x /usr/bin/sccache - name: Fetch latest code uses: actions/checkout@v3 - name: Cache cargo @@ -112,6 +112,34 @@ jobs: chain: ${{ matrix.target.chain }} compare-with: ${{ matrix.target.compare-with }} + evm-checks: + name: Task check EVM + if: github.event_name == 'push' || !github.event.pull_request.draft + needs: [basic-checks] + runs-on: ubuntu-latest + steps: + - name: Download darwinia + uses: actions/download-artifact@v2 + with: + name: darwinia + - name: Install darwinia + run: | + chmod u+x darwinia + sudo mv darwinia /usr/bin + - name: Launch darwinia + run: darwinia --chain pangolin-dev --tmp --alice & + - name: Install Node 19 + uses: actions/setup-node@v2 + with: + node-version: 19 + - name: Fetch latest code + uses: actions/checkout@v3 + - name: Action test + run: | + cd tests + npm install + npm run test + state-checks: name: Task check state if: github.event_name == 'push' || !github.event.pull_request.draft