Skip to content

Commit

Permalink
ci: update CI commands to run temporarily steps for root + package
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Jan 9, 2024
1 parent f81beba commit 542636d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,20 @@ jobs:
run: npm ci

- name: 🔍 Run Solidity Linter
run: npm run lint:solidity
run: |
npm run lint:solidity
npm run lint:turbo:solidity
- name: 🎨 Run ESLint on JS/TS files
run: npm run lint
run: |
npm run lint
npm run lint:turbo
# This will also generate the Typechain types used by the Chai tests
- name: 🏗️ Build contract artifacts
run: npx hardhat compile
run: |
npm run build
npm run build:turbo
- name: 📤 cache dependencies + build
uses: actions/cache@v2
Expand All @@ -55,6 +61,9 @@ jobs:
exit 1
fi
- name: 🧪 Run Turbo tests
run: npm run test:turbo

test-suites:
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@
},
"scripts": {
"build": "hardhat compile",
"build:turbo": "turbo build",
"build:docs": "hardhat dodoc && ts-node scripts/interfaceIds.ts && prettier -w ./docs",
"build:js": "vite build && dts-bundle-generator --config dtsconfig.json",
"clean": "hardhat clean && rm -rf module common",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.js",
"lint:turbo": "turbo lint",
"lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'",
"lint:turbo:solidity": "turbo lint:solidity",
"package": "hardhat prepare-package",
"remixd": "remixd -s . --remix-ide",
"test": "hardhat test",
Expand Down

0 comments on commit 542636d

Please sign in to comment.