Skip to content

Commit c1b4c93

Browse files
committed
👷 Update actions/cache GitHub Action to Version v5
Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch>
1 parent 0208aa4 commit c1b4c93

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
3131

3232
- name: Restore pnpm cache
33-
uses: actions/cache@v4
33+
uses: actions/cache@v5
3434
id: pnpm-cache
3535
with:
3636
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
3636

3737
- name: Restore pnpm cache
38-
uses: actions/cache@v4
38+
uses: actions/cache@v5
3939
id: pnpm-cache
4040
with:
4141
path: |

.github/workflows/test-createx.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
3838

3939
- name: Restore pnpm cache
40-
uses: actions/cache@v4
40+
uses: actions/cache@v5
4141
id: pnpm-cache
4242
with:
4343
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
@@ -150,12 +150,12 @@ jobs:
150150
- name: Set up LCOV
151151
uses: hrishikesh-kadam/setup-lcov@v1
152152
with:
153-
ref: v2.3.2
153+
ref: v2.4
154154

155155
- name: Run coverage
156156
run: |
157157
echo '```' >> $GITHUB_STEP_SUMMARY
158-
NO_COLOR=1 forge coverage --report summary --report lcov --lcov-version 2.3.2 >> $GITHUB_STEP_SUMMARY
158+
NO_COLOR=1 forge coverage --report summary --report lcov --lcov-version 2.4 >> $GITHUB_STEP_SUMMARY
159159
echo '```' >> $GITHUB_STEP_SUMMARY
160160
env:
161161
FOUNDRY_PROFILE: default
@@ -175,7 +175,7 @@ jobs:
175175
lcov-file: ./lcov.info
176176
github-token: ${{ secrets.GITHUB_TOKEN }}
177177

178-
# The following steps act as a temporary workaround, as LCOV `2.3.2` is not yet supported
178+
# The following steps act as a temporary workaround, as LCOV `2.4` is not yet supported
179179
# in `zgosalvez/github-actions-report-lcov@v5`: https://github.com/zgosalvez/github-actions-report-lcov/issues/168.
180180
- name: Set up LCOV `1.16`
181181
run: |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"clean": "npx hardhat clean && forge clean",
2727
"test": "forge test --out forge-artifacts",
2828
"snapshot": "forge snapshot --out forge-artifacts",
29-
"coverage": "forge coverage --report summary --out forge-artifacts --lcov-version 2.3.2",
30-
"coverage:report": "forge coverage --report lcov --out forge-artifacts --lcov-version 2.3.2 && lcov --branch-coverage --remove lcov.info \"test/*\" --output-file lcov.info --ignore-errors inconsistent,inconsistent && genhtml lcov.info --branch-coverage --output-dir coverage --ignore-errors inconsistent,inconsistent",
29+
"coverage": "forge coverage --report summary --out forge-artifacts --lcov-version 2.4",
30+
"coverage:report": "forge coverage --report lcov --out forge-artifacts --lcov-version 2.4 && lcov --branch-coverage --remove lcov.info \"test/*\" --output-file lcov.info --ignore-errors inconsistent,inconsistent && genhtml lcov.info --branch-coverage --output-dir coverage --ignore-errors inconsistent,inconsistent",
3131
"compile": "npx hardhat compile && forge build --out forge-artifacts",
3232
"size": "npx hardhat size-contracts",
3333
"abi": "npx hardhat export-abi",

0 commit comments

Comments
 (0)