Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Add evm checks (#252)
Browse files Browse the repository at this point in the history
* Add evm checks

Signed-off-by: Xavier Lau <xavier@inv.cafe>

* Fix

---------

Signed-off-by: Xavier Lau <xavier@inv.cafe>
  • Loading branch information
AurevoirXavier committed Feb 2, 2023
1 parent aa17f3e commit 9fc1dad
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9fc1dad

Please sign in to comment.