Skip to content

Commit

Permalink
update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai committed Oct 9, 2024
1 parent b37583a commit 66a1877
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '21.x'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'

# - name: Run tests for smart-contract
# run: make contract_test
- name: Run tests for smart-contract
run: make contract-test

- name: Setup Go
uses: actions/setup-go@v3
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ test:
.PHONY: clean
clean:
@rm -rf $(BUILD_DIR)

contract-test:
@cd smartcontracts && npm install --save-dev hardhat
@cd smartcontracts && npx hardhat test

0 comments on commit 66a1877

Please sign in to comment.