Skip to content

Commit

Permalink
Split CI for harhdat and the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoo committed Feb 22, 2024
1 parent bc0079d commit 6c0a8b0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🔄 Checkout
uses: actions/checkout@v4

- name: Setup Bun
- name: 🛠️ Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

# Everything for the root scripts
- name: 📦 Install dependencies
run: bun install

- name: 🎨 Run ESLint on JS/TS files
- name: 🎨 Lint
run: bun run lint

- name: 👷 Build contracts on Hardhat folders
run: cd smart-contracts-hardhat && bun install && bun run build
# Everything Hardhat related
- name: 📦 Install Hardhat dependencies
working-directory: ./smart-contracts-hardhat
run: bun install

- name: 🎨 Lint Hardhat folder
working-directory: ./smart-contracts-hardhat
run: bun run lint

- name: 👷 Build contracts
working-directory: ./smart-contracts-hardhat
run: bun run build
3 changes: 2 additions & 1 deletion smart-contracts-hardhat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "hardhat-project",
"scripts": {
"build": "hardhat compile --show-stack-traces"
"build": "hardhat compile --show-stack-traces",
"lint": "eslint ."
},
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
Expand Down

0 comments on commit 6c0a8b0

Please sign in to comment.