Skip to content

Commit

Permalink
Reuse clojure setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Nov 4, 2024
1 parent 3a8a165 commit b8b86a9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 19 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: latest
bb: latest

- name: Cache clojure/java dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: ${{ runner.os }}-clojure-${{ hashFiles('**/*.edn') }}
restore-keys: |
${{ runner.os }}-clojure-
- name: Clojure dependency and dependencies
uses: ./.github/workflows/clojure.yml

- name: Install node dependencies
run: npm install
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Clojure dependency and dependencies

on:
workflow_call:

jobs:
cache:
runs-on: ubuntu-latest
steps:
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
cli: latest
bb: latest

- name: Cache clojure/java dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: ${{ runner.os }}-clojure-${{ hashFiles('**/*.edn') }}
restore-keys: |
${{ runner.os }}-clojure-
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
name: ${{ env.VSIX_NAME }}
path: .

- name: Clojure dependency and dependencies
uses: ./.github/workflows/clojure.yml

- name: Get Release Notes
id: release_notes
run: bb get-release-notes ${{ github.ref_name }} >> $GITHUB_OUTPUT
Expand Down
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Changes to Paste Replaced

## [Unreleased]

## [v1.1.12] - 2024-11-04

- 8 Testing release workflow
- 9 Testing release workflow

## [v1.1.12] - 2024-11-04

Expand Down

0 comments on commit b8b86a9

Please sign in to comment.