Skip to content

Commit

Permalink
Merge pull request #91 from OffchainLabs/unused-errors
Browse files Browse the repository at this point in the history
Add unused errors check to CI
  • Loading branch information
gvladika authored Jul 26, 2024
2 parents 31f9b80 + 8e4e4ae commit bf39f87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: yarn test

test-contracts:
name: Test storage layout and signatures
name: Test storage layout, signatures and look for unused errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -98,6 +98,12 @@ jobs:
- name: Test function signatures
run: yarn run test:signatures

- name: Run unused Solidity errors checker
uses: OffchainLabs/actions/check-unused-errors@main
with:
directory: './contracts'
exceptions_file: './test/unused-errors/exceptions.txt'

test-e2e:
name: Test e2e
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"test:storage": "./scripts/storage_layout_test.bash",
"test:signatures": "./scripts/signatures_test.bash",
"test:mutation": "ts-node test-mutation/gambitTester.ts",
"test:unused:errors": "./test/unused-errors/find_unused_errors.sh",
"deploy:local:token-bridge": "ts-node ./scripts/local-deployment/deployCreatorAndCreateTokenBridge.ts",
"deploy:token-bridge-creator": "ts-node ./scripts/deployment/deployTokenBridgeCreator.ts",
"create:token-bridge": "ts-node ./scripts/deployment/createTokenBridge.ts",
Expand Down
Empty file.

0 comments on commit bf39f87

Please sign in to comment.