Updates GitHub-based Actions to v4 + updates runner image to 22.04

This commit is contained in:
Maximilian Kratz 2023-12-19 08:02:21 +01:00
parent 73c9b4a433
commit c71f3b335c

View file

@ -20,19 +20,19 @@ env:
jobs:
# Build Eclipse projects and create a "fat JAR"
build:
runs-on: [ubuntu-20.04]
runs-on: [ubuntu-22.04]
steps:
- name: Start message
run: echo "Started CI build."
- name: Install correct Java version
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Install dependencies
run: sudo apt-get install -yq grep coreutils wget curl
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get Eclipse archive
uses: dsaltares/fetch-gh-release-asset@master
with:
@ -68,7 +68,7 @@ jobs:
cd $START_PWD/$TEST_PROJECT/
ant -f $JAR_NAME.xml
- name: Upload JAR file
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.JAR_NAME }}.jar
path: ${{ env.TEST_PROJECT }}/${{ env.JAR_NAME }}.jar
@ -76,17 +76,17 @@ jobs:
# Download "fat JAR" and run all tests
test:
needs: [build]
runs-on: [ubuntu-20.04]
runs-on: [ubuntu-22.04]
steps:
- name: Start message
run: echo "Started CI test."
- name: Install correct Java version
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Download JAR file
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.JAR_NAME }}.jar
# Currently, this workaround is needed for HiPE
@ -104,7 +104,7 @@ jobs:
with:
JUNIT_FILES: build/reports/*.xml
- name: Upload test reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-reports
path: |