Skip to content

Commit

Permalink
ci use env NVM_DIR fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Nov 15, 2024
1 parent 829484d commit 4c6ae8a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 4c6ae8a

Please sign in to comment.