Skip to content

Commit

Permalink
Merge pull request #915 from komamitsu/fix-ci
Browse files Browse the repository at this point in the history
Fix CI that fails to upload Jar files published to the local Maven repository
  • Loading branch information
komamitsu authored Oct 29, 2024
2 parents 6a34c01 + 8a3eca2 commit e4631f0
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
matrix:
java_version: [8, 11]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java_version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -42,13 +42,13 @@ jobs:
matrix:
java_version: [16, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java_version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -66,13 +66,13 @@ jobs:
prepare_for_integration_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -83,10 +83,11 @@ jobs:
./gradlew -p fluency-core publishToMavenLocal --stacktrace --info
./gradlew -p fluency-fluentd publishToMavenLocal --stacktrace --info
- name: Upload local Maven package just installed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: local-m2
path: ~/.m2
include-hidden-files: true

integration_test:
runs-on: ubuntu-latest
Expand All @@ -95,13 +96,13 @@ jobs:
matrix:
java_version: [8, 11, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java_version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -110,7 +111,7 @@ jobs:
- name: Remove m2 directory just in case
run: rm -rf ~/.m2
- name: Download local Maven package prepared above
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: local-m2
path: ~/.m2
Expand All @@ -127,13 +128,13 @@ jobs:
matrix:
java_version: [16, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java_version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand Down

0 comments on commit e4631f0

Please sign in to comment.