Skip to content

Commit 5575211

Browse files
authored
Merge pull request #95 from bgilbert/actions
workflows: bump action versions; open-code pre-commit check; update Java
2 parents 37cf1e1 + 3b620f5 commit 5575211

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/java.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Check out repo
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
- name: Set up Python
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@v6
2222
with:
2323
python-version: '3.13'
24+
- name: Install dependencies
25+
run: python -m pip install pre-commit
26+
- name: Cache pre-commit environments
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.cache/pre-commit
30+
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
2431
- name: Run pre-commit hooks
25-
uses: pre-commit/[email protected]
32+
run: pre-commit run -a --show-diff-on-failure --color=always
2633

2734
build:
2835
name: Build
@@ -33,7 +40,7 @@ jobs:
3340
strategy:
3441
matrix:
3542
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
36-
java: [22, 24]
43+
java: [22, 25]
3744
include:
3845
- os: ubuntu-latest
3946
java: 22
@@ -43,9 +50,9 @@ jobs:
4350
shell: bash
4451
steps:
4552
- name: Check out repo
46-
uses: actions/checkout@v4
53+
uses: actions/checkout@v5
4754
- name: Install Java
48-
uses: actions/setup-java@v4
55+
uses: actions/setup-java@v5
4956
with:
5057
distribution: oracle
5158
java-version: ${{ matrix.java }}
@@ -111,9 +118,9 @@ jobs:
111118
contents: write
112119
steps:
113120
- name: Check out repo
114-
uses: actions/checkout@v4
121+
uses: actions/checkout@v5
115122
- name: Download artifacts
116-
uses: actions/download-artifact@v4
123+
uses: actions/download-artifact@v5
117124
with:
118125
pattern: ${{ needs.build.outputs.dist-base }}
119126
merge-multiple: true

0 commit comments

Comments
 (0)