From a2e97d51b4368bf8e5d0d8be47c2764bffa08bf2 Mon Sep 17 00:00:00 2001 From: Vladislav Volosnikov Date: Tue, 29 Aug 2023 21:41:18 +0300 Subject: [PATCH] Add check in test workflow --- .github/workflows/checks.yml | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 122d39564..2f2e6e758 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -40,6 +40,8 @@ jobs: run: npm run test:inheritance - name: Check proceduraly generated contracts are up-to-date run: npm run test:generation + - name: Check custom errors have unique names + run: npm run test:errors-uniqueness - name: Compare gas costs uses: ./.github/actions/gas-compare with: diff --git a/package.json b/package.json index ffa868ac7..20c3eb103 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "version": "scripts/release/version.sh", "test": "hardhat test", "test:inheritance": "scripts/checks/inheritance-ordering.js artifacts/build-info/*", + "test:errors-uniqueness": "scripts/checks/custom-errors-duplication.js artifacts/build-info/*", "test:generation": "scripts/checks/generation.sh", "gas-report": "env ENABLE_GAS_REPORT=true npm run test", "slither": "npm run clean && slither ."