diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index 0949ab3cf..66b12045a 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -28,13 +28,15 @@ jobs: git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - name: Clone the repository uses: actions/checkout@v4 - - name: Build contracts + - name: Update Node and Yarn run: | export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" nvm install 18 && nvm alias default 18 npm install -g yarn - cargo make build-contracts + echo "$(dirname $(nvm which node))" >> $GITHUB_PATH + - name: Build contracts + - run: cargo make build-contracts - name: Run Contract cargo clippy run: cargo make clippy udeps: @@ -57,12 +59,14 @@ jobs: git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || : - name: Clone the repository uses: actions/checkout@v4 - - name: Run yarn lint + - name: Update Node and Yarn run: | export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" nvm install 18 && nvm alias default 18 npm install -g yarn - cargo make check-contracts + echo "$(dirname $(nvm which node))" >> $GITHUB_PATH + - name: Run yarn lint + run: cargo make check-contracts - name: Check committed EvmErc20.bin run: bash scripts/verify_evm_erc20.sh