Skip to content

Commit

Permalink
ci: compile contracts in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisfc68 committed Dec 20, 2024
1 parent b01b003 commit 9d008da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:

- name: Install dependencies
run: npm ci
- name: Lint test and scripts
run: npm run lint:ts
- name: Lint contracts
run: npm run lint:sol

- name: Compile contracts
run: npm run compile

- name: Lint test and scripts
run: npm run lint:ts

- name: Unit test smart contracts
run: npm test
# - name: Coverage report
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "## registerFastBridgeBtcTransaction",
"main": "index.js",
"scripts": {
"compile": "npm run lint:sol && npx truffle compile --all",
"compile": "npm run lint:sol && npx hardhat compile",
"test": "npx hardhat test",
"test-regtest": "npm run compile && npx truffle test --network testRegtest",
"test-ganache": "npm run compile && npx truffle test --network ganache",
Expand Down

0 comments on commit 9d008da

Please sign in to comment.