Skip to content

Commit

Permalink
Cache clojure deps properly
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 2, 2024
1 parent 3eb657c commit e1798e6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,26 @@ jobs:
bb: latest

- name: Cache clojure/java dependencies
uses: "actions/cache@v4"
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: "${{ runner.os }}-clojure-${{ hashFiles('deps.edn') }}"
restore-keys: "${{ runner.os }}-clojure-"
key: ${{ runner.os }}-clojure-${{ hashFiles('**/*.edn') }}
restore-keys: |
${{ runner.os }}-clojure-
- name: Install node dependencies
run: npm install

- name: Cache npm
uses: "actions/cache@v4"
uses: actions/cache@v4
with:
path: "~/.npm"
key: "${{ runner.os }}-npm-${{ hashFiles('package.json') }}"
restore-keys: "${{ runner.os }}-npm-"
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Build VSIX
run: |
Expand All @@ -59,5 +61,4 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.get-vsix-name.outputs.vsix_name }}
path: '*.vsix'

path: '*.vsix'

0 comments on commit e1798e6

Please sign in to comment.