Skip to content

Commit 7f7629f

Browse files
committed
prettier workflow
1 parent 6b29f26 commit 7f7629f

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,22 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
check:
11+
hardhat-check:
12+
runs-on: ubuntu-latest
13+
env:
14+
FOUNDRY_PROFILE: hardhat
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
run_install: true
22+
23+
- name: Run hardhat tests
24+
run: pnpm hardhat test
25+
26+
foundry-check:
1227
strategy:
1328
fail-fast: true
1429
matrix:
@@ -32,11 +47,6 @@ jobs:
3247
run: |
3348
forge --version
3449
35-
- name: Run Forge fmt
36-
run: |
37-
forge fmt --check
38-
id: fmt
39-
4050
- name: Run Forge build
4151
run: |
4252
forge build --sizes

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
lib
2-
snapshots-*
2+
snapshots
33
pnpm-lock.yaml

contracts/TestFixture.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ contract TestFixture {
2222
uint8 limit = 12;
2323
(uint i, bytes32 parsed, uint8 len) = cbor.Bytes32(0, limit);
2424

25-
require(!(i > cbor.length), "TestFixture Must read within bounds of cbor");
25+
require(
26+
i <= cbor.length,
27+
"TestFixture Must read within bounds of cbor"
28+
);
2629
require(i == cbor.length, "TestFixture Must read entire cbor");
2730

2831
emit ParsedBytes32(i, parsed, len);

0 commit comments

Comments
 (0)