ci: check formatting

This commit is contained in:
Adam Uhlíř 2024-01-24 11:35:48 +01:00 committed by markspanbroek
parent 79d9c43beb
commit d4c7057fff
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,14 @@ name: CI
on: [push, pull_request]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run format:check
test:
runs-on: ubuntu-latest
steps:

View File

@ -7,6 +7,7 @@
"start": "hardhat node --export deployment-localhost.json",
"compile": "hardhat compile",
"format": "prettier --write contracts/**/*.sol test/**/*.js",
"format:check": "prettier --check contracts/**/*.sol test/**/*.js",
"lint": "solhint contracts/**.sol",
"deploy": "hardhat deploy"
},