mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-01-09 11:32:22 +00:00
ci: check formatting
This commit is contained in:
parent
79d9c43beb
commit
d4c7057fff
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -3,6 +3,14 @@ name: CI
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"start": "hardhat node --export deployment-localhost.json",
|
"start": "hardhat node --export deployment-localhost.json",
|
||||||
"compile": "hardhat compile",
|
"compile": "hardhat compile",
|
||||||
"format": "prettier --write contracts/**/*.sol test/**/*.js",
|
"format": "prettier --write contracts/**/*.sol test/**/*.js",
|
||||||
|
"format:check": "prettier --check contracts/**/*.sol test/**/*.js",
|
||||||
"lint": "solhint contracts/**.sol",
|
"lint": "solhint contracts/**.sol",
|
||||||
"deploy": "hardhat deploy"
|
"deploy": "hardhat deploy"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user