Skip to content

Commit

Permalink
ci(version): bump version of deprecated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bathienle committed Nov 22, 2024
1 parent 0e2f260 commit 74a02c7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:

steps:
- name: Set up the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK ${{ vars.JAVA_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: ${{ vars.JAVA_DIST }}
java-version: ${{ vars.JAVA_VERSION }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ vars.GRADLE_VERSION }}

Expand All @@ -34,7 +34,7 @@ jobs:
run: mv build/libs/cytomine.jar build/libs/${{ env.JAR_FILE }}

- name: Store the artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.JAR_FILE }}
path: build/libs/${{ env.JAR_FILE }}
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Create release
id: release-creation
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
name: ${{ github.ref_name }}
prerelease: ${{ env.prerelease }}
Expand Down Expand Up @@ -89,12 +89,12 @@ jobs:

steps:
- name: Get the JAR file
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.JAR_FILE }}

- name: Upload release asset
uses: actions/github-script@v6
uses: actions/github-script@v7
env:
name: ${{ env.JAR_FILE }}
release_id: ${{ needs.create-release.outputs.release_id }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and push Docker image
name: Docker

on:
push:
Expand All @@ -11,7 +11,7 @@ jobs:

steps:
- name: Set up the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Release check
id: release
Expand All @@ -32,16 +32,16 @@ jobs:
type=semver,pattern={{raw}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
build-args: |
CORE_VERSION=${{ github.ref_name }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test-core.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test core
name: Test

on:
pull_request:
Expand Down Expand Up @@ -41,16 +41,16 @@ jobs:

steps:
- name: Set up the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK ${{ vars.JAVA_VERSION }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: ${{ vars.JAVA_DIST }}
java-version: ${{ vars.JAVA_VERSION }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ vars.GRADLE_VERSION }}

Expand All @@ -61,23 +61,23 @@ jobs:
- name: Upload test reports
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
retention-days: 30

- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: build/test-results/
retention-days: 30

- name: Upload Java Code Coverage (JaCoCo)
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jacoco
path: build/jacoco/
Expand Down

0 comments on commit 74a02c7

Please sign in to comment.