Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated deprecated GitHub actions #217

Merged
merged 5 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: mikepenz/release-changelog-builder-action@v1
Expand Down
40 changes: 18 additions & 22 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,26 @@ jobs:
environment: Build
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '21.1.0'
java: 'java11'

- name: Install native image
run: gu install native-image
version: '21.1.0'
java-version: '11'
components: 'native-image'

- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache Gradle packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -44,21 +42,21 @@ jobs:

- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v2
uses: mikepenz/action-junit-report@v3
with:
report_paths: '**/build/test-results/test/TEST-*.xml'

- name: Native image for CLI
run: ./gradlew :cli:shadowJar :cli:nativeImage

- name: Upload Linux native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*

- name: Upload JAR Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: jar
path: ${{ github.workspace }}/cli/build/libs/kafkactl-*.jar
Expand All @@ -68,28 +66,26 @@ jobs:
environment: Build
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '20.3.2'
java: 'java11'

- name: Install native image
run: ${{ env.JAVA_HOME }}\bin\gu.cmd install native-image
version: '20.3.2'
java-version: '11'
components: 'native-image'

- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
uses: al-cheb/configure-pagefile-action@v1.3

- name: Native image for CLI
run: |
Expand All @@ -98,7 +94,7 @@ jobs:
shell: cmd

- name: Upload Windows native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image-windows
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*.exe
30 changes: 16 additions & 14 deletions .github/workflows/on_push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,29 @@ jobs:
password: ${{ secrets.MICHELIN_DOCKER_HUB_PASSWD }}

- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '21.1.0'
java: 'java11'
version: '21.1.0'
java-version: '11'
components: 'native-image'

- name: Install native image
run: gu install native-image

- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache Gradle packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -55,7 +56,7 @@ jobs:
run: ./gradlew :cli:shadowJar :cli:nativeImage

- name: Upload Linux native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image-linux
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*
Expand All @@ -71,28 +72,29 @@ jobs:
environment: Build
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '20.3.2'
java: 'java11'
version: '20.3.2'
java-version: '11'
components: 'native-image'

- name: Install native image
run: ${{ env.JAVA_HOME }}\bin\gu.cmd install native-image

- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
uses: al-cheb/configure-pagefile-action@v1.3

- name: Native image for CLI
run: |
Expand All @@ -101,7 +103,7 @@ jobs:
shell: cmd

- name: Upload Windows native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image-windows
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*.exe
30 changes: 16 additions & 14 deletions .github/workflows/on_push_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ jobs:
password: ${{ secrets.MICHELIN_DOCKER_HUB_PASSWD }}

- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '21.1.0'
java: 'java11'
version: '21.1.0'
java-version: '11'
components: 'native-image'

- name: Install Native Image
run: gu install native-image

- name: Cache Gradle packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -48,13 +49,13 @@ jobs:
run: ./gradlew dockerBuild api:dockerPush cli:dockerPush -Prelease

- name: Upload Linux native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image-linux
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*

- name: Upload JAR Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: jar
path: ${{ github.workspace }}/cli/build/libs/kafkactl-*.jar
Expand Down Expand Up @@ -82,28 +83,29 @@ jobs:
environment: Build
steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@4.0
uses: graalvm/setup-graalvm@v1
with:
graalvm: '20.3.2'
java: 'java11'
version: '20.3.2'
java-version: '11'
components: 'native-image'

- name: Install native image
run: ${{ env.JAVA_HOME }}\bin\gu.cmd install native-image

- name: Cache Gradle packages
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
uses: al-cheb/configure-pagefile-action@v1.3

- name: Native image for CLI
run: |
Expand All @@ -112,7 +114,7 @@ jobs:
shell: cmd

- name: Upload Windows native Kafkactl
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: native-image-windows
path: ${{ github.workspace }}/cli/build/native-image/kafkactl-*.exe
Expand Down