-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update submodules and ci workflows (#21)
* chore: bump ci actions * fix: workflow trigger rules * fix: foundry.toml * fix: foundry import * test: set evm_version * test: evm_version set to `paris` * v0.0.0 * test: set explicitly version to 0.8.19 * chore: add `ffi` option in config.toml * ci: nit * chore: forge update * chore: change solidity versions to `^0.8.0` to be compatible with lib dependencies and solve build issues * chore: remove `evm_version` in config.toml * ci: update ci * chore: migrate to `pnpm` and fix lint issues * fix: lint ci * fix: exploit ci
- Loading branch information
Showing
24 changed files
with
646 additions
and
737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
name: lint | ||
|
||
on: | ||
push: | ||
paths: | ||
# Contracts and tests | ||
- 'src/**/*.sol' | ||
- 'test/**/*.t.sol' | ||
# Documentation | ||
- README.md | ||
on: push | ||
|
||
env: | ||
PNPM_VERSION: '8' | ||
NODE_VERSION: '20.9' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Lint | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
node-version: 18 | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
id: install | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Run lint on Solidity code | ||
run: npx prettier --check 'src/**/*.sol' 'test/**/*.sol' | ||
id: solidity-lint | ||
- name: Install dependencies | ||
run: pnpm install | ||
id: install | ||
|
||
- name: Run lint on README.md | ||
run: npx markdown-table-formatter --check README.md | ||
id: readme-lint | ||
- name: Run linter | ||
run: pnpm run check | ||
id: lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule forge-std
updated
30 files
+1 −0 | .gitattributes | |
+48 −6 | .github/workflows/ci.yml | |
+1 −1 | package.json | |
+635 −0 | scripts/vm.py | |
+5 −3 | src/Base.sol | |
+4 −3 | src/Script.sol | |
+23 −6 | src/StdChains.sol | |
+195 −17 | src/StdCheats.sol | |
+16 −1 | src/StdInvariant.sol | |
+18 −14 | src/StdJson.sol | |
+54 −3 | src/StdStorage.sol | |
+2 −2 | src/StdStyle.sol | |
+67 −33 | src/StdUtils.sol | |
+4 −3 | src/Test.sol | |
+987 −363 | src/Vm.sol | |
+394 −382 | src/console2.sol | |
+216 −0 | src/mocks/MockERC20.sol | |
+221 −0 | src/mocks/MockERC721.sol | |
+13,248 −0 | src/safeconsole.sol | |
+93 −77 | test/StdAssertions.t.sol | |
+93 −37 | test/StdChains.t.sol | |
+236 −44 | test/StdCheats.t.sol | |
+13 −11 | test/StdError.t.sol | |
+27 −12 | test/StdMath.t.sol | |
+66 −34 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+80 −35 | test/StdUtils.t.sol | |
+15 −0 | test/Vm.t.sol | |
+441 −0 | test/mocks/MockERC20.t.sol | |
+721 −0 | test/mocks/MockERC721.t.sol |
Submodule foundry-huff
updated
8 files
+2 −1 | foundry.toml | |
+1 −1 | lib/forge-std | |
+1 −1 | lib/solidity-stringutils | |
+25 −5 | src/HuffConfig.sol | |
+5 −0 | src/test/HuffConfig.t.sol | |
+51 −7 | src/test/HuffDeployer.t.sol | |
+24 −13 | src/test/Logging.t.sol | |
+5 −0 | src/test/contracts/EVMVersionCheck.huff |
Submodule openzeppelin-contracts
updated
768 files
Oops, something went wrong.