Skip to content

Commit

Permalink
Update GHA actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Nov 23, 2024
1 parent 6bc948d commit 21fe4f2
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
ENV: ${{ matrix.env }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
Expand All @@ -37,14 +37,14 @@ jobs:
lein: 2.9.10
cli: latest
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
cache: 'npm'

# setup-java cache only looks at pom.xml for the key
- name: Cache m2
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Run tests
run: ./test-environments/${{ matrix.env }}/test.sh

- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
with:
env_vars: ENV

Expand All @@ -68,9 +68,9 @@ jobs:
needs: test
environment: build-site
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
Expand All @@ -80,14 +80,14 @@ jobs:
lein: 2.9.8
cli: latest
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
cache: 'npm'

# setup-java cache only looks at pom.xml for the key
- name: Cache m2
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
Expand All @@ -108,9 +108,9 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
Expand All @@ -122,7 +122,7 @@ jobs:

# setup-java cache only looks at pom.xml for the key
- name: Cache m2
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}
Expand All @@ -131,5 +131,6 @@ jobs:
- name: Build docs
run: ./build-docs.sh
# Fine grained personal access token, 366 days expiry, only contents rw permission to the site repo
env:
SITE_TOKEN: ${{ secrets.SITE_TOKEN }}

0 comments on commit 21fe4f2

Please sign in to comment.