From 9d008da563cc7dd10b9fcf58fc818ea0ef2b2264 Mon Sep 17 00:00:00 2001 From: Luisfc68 Date: Fri, 20 Dec 2024 17:46:36 -0300 Subject: [PATCH] ci: compile contracts in pipeline --- .github/workflows/ci.yml | 9 +++++++-- package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b11178e..6e423b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index c385212..0bd7b3c 100644 --- a/package.json +++ b/package.json @@ -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",