diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e0f569..ea1ac9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/package.json b/package.json index 0ea66dc..062f110 100644 --- a/package.json +++ b/package.json @@ -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" },