Skip to content

Commit 8391f4e

Browse files
committed
fix: fix ci bug
1 parent fedfdd4 commit 8391f4e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ jobs:
1313
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5.6.0
1414
with:
1515
python-version: "3.x"
16+
cache: pip
17+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a #v4.1.2
18+
with:
19+
path: ~/.cache/pre-commit
20+
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
21+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a #v4.1.2
22+
id: apt-cache
23+
with:
24+
path: /var/cache/apt
25+
key: apt-${{ runner.os }}-shellcheck-shfmt
1626
- name: Install shfmt and shellcheck
27+
if: steps.apt-cache.outputs.cache-hit != 'true'
1728
run: sudo apt-get update && sudo apt-get install -y shellcheck shfmt
1829
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1
1930
with:

0 commit comments

Comments
 (0)