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

Change workflow ubuntu version to 20.04 one #69

Merged
merged 2 commits into from
Apr 11, 2024
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
44 changes: 22 additions & 22 deletions .github/workflows/codeql-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
Expand All @@ -24,24 +24,24 @@ jobs:
java: [ '17' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
10 changes: 5 additions & 5 deletions .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
os: [ macos-12, windows-latest, ubuntu-20.04 ]

steps:
- name: Checkout project
Expand Down Expand Up @@ -48,13 +48,13 @@ jobs:
${{ runner.os }}-maven-

- name: Creating native image (Mac)
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-12'
run: mvn install -P native-image -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Creating native image (Linux)
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: mvn install -P native-image -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -70,13 +70,13 @@ jobs:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Performing integration test for Mac
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-12'
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=mac
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Performing integration test for Linux
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=linux
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
os: [ macos-12, windows-latest, ubuntu-20.04 ]

steps:
- name: Checkout project
Expand Down Expand Up @@ -54,22 +54,22 @@ jobs:
${{ runner.os }}-maven-

- name: Set versions
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: |
release_version=${{ github.event.inputs.release_version }}
release_branch_name=${release_version%.*}.x
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV

- name: Create Release branch
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
git checkout -b ${{ env.release_branch_name }}
git push origin ${{ env.release_branch_name }}

- name: Set maven version
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-20.04'
run: mvn versions:set -DnewVersion=${{ github.event.inputs.release_version }}
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -81,13 +81,13 @@ jobs:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Creating native image (Mac)
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-12'
run: mvn install -P native-image -DskipTests -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Creating native image (Linux)
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: mvn install -P native-image -DskipTests -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60

env:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
shell: pwsh

- name: Create GitHub release (Mac)
if: ${{ (matrix.os == 'macos-latest') && (!contains( github.ref, '-M' )) }}
if: ${{ (matrix.os == 'macos-12') && (!contains( github.ref, '-M' )) }}
uses: svenstaro/upload-release-action@latest
with:
file_glob: true
Expand All @@ -127,7 +127,7 @@ jobs:
tag: v${{ github.event.inputs.release_version }}

- name: Create GitHub pre-release (Mac)
if: ${{ (matrix.os == 'macos-latest') && (contains( github.ref, '-M' )) }}
if: ${{ (matrix.os == 'macos-12') && (contains( github.ref, '-M' )) }}
uses: svenstaro/upload-release-action@latest
with:
file_glob: true
Expand All @@ -138,7 +138,7 @@ jobs:
tag: v${{ github.event.inputs.release_version }}

- name: Create GitHub release (Linux)
if: ${{ (matrix.os == 'ubuntu-latest') && (!contains( github.ref, '-M' )) }}
if: ${{ (matrix.os == 'ubuntu-20.04') && (!contains( github.ref, '-M' )) }}
uses: svenstaro/upload-release-action@latest
with:
file_glob: true
Expand All @@ -149,7 +149,7 @@ jobs:
tag: v${{ github.event.inputs.release_version }}

- name: Create GitHub pre-release (Linux)
if: ${{ (matrix.os == 'ubuntu-latest') && (contains( github.ref, '-M' )) }}
if: ${{ (matrix.os == 'ubuntu-20.04') && (contains( github.ref, '-M' )) }}
uses: svenstaro/upload-release-action@latest
with:
file_glob: true
Expand Down
Loading