Skip to content

Commit

Permalink
Use JDK 17 in GH Actions, use latest action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Aug 8, 2024
1 parent 67f830a commit cd331e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 11, 13 ]
# test against relevant LTS versions of Java
java: [ 17, 21 ]
name: Build ktfmt on Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Build ktfmt
run: mvn -B install --file pom.xml
- name: Build ktfmt_idea_plugin
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish_artifacts_on_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
release_tag:
description: 'Release tag'
required: true
type: stringe
type: string
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -24,12 +24,13 @@ jobs:
with:
ref: ${{ github.events.release.tag_name || inputs.release_tag || github.ref }}
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
distribution: zulu
- id: install-secret-key
name: Install gpg secret key
run: |
Expand All @@ -53,7 +54,7 @@ jobs:
popd
env:
JETBRAINS_MARKETPLACE_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
- name: Deploy website
run: |
KTFMT_TMP_DIR=$(mktemp -d)
Expand Down

0 comments on commit cd331e6

Please sign in to comment.