Upgrade GHA dependencies (#2366)

This fixes the following deprecation warning:

> Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20

Signed-off-by: Wouter Born <github@maindrain.net>
pull/2370/head
Wouter Born 2024-02-17 11:18:05 +01:00 committed by GitHub
parent 344779acfa
commit a565bf2d12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 16 deletions

View File

@ -19,23 +19,23 @@ jobs:
fail-fast: false
matrix:
java: [ '17' ]
maven: [ '3.9.4' ]
maven: [ '3.9.6' ]
os: [ 'ubuntu-22.04' ]
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
if: github.head_ref == ''
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout merge
if: github.head_ref != ''
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge
- name: Set up Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2/repository
@ -45,13 +45,13 @@ jobs:
${{ runner.os }}-maven-
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Set up Maven ${{ matrix.maven }}
uses: stCarolas/setup-maven@v4.5
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ matrix.maven }}
@ -73,14 +73,14 @@ jobs:
- name: Upload Build Log
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-log-java-${{ matrix.java }}-${{ matrix.os }}
path: build.log
- name: Upload SAT Summary Report
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sat-summary-report
path: target/summary_report.html

View File

@ -20,14 +20,14 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache node modules
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: node_modules # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
@ -49,14 +49,14 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache node modules
id: cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: node_modules # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
@ -72,7 +72,7 @@ jobs:
- name: Build and generate report
run: npm run webpack-analyzer-report-stats
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: report
path: /home/runner/work/openhab-webui/openhab-webui/bundles/org.openhab.ui/web/report.html

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Send bundle stats and build information to RelativeCI
uses: relative-ci/agent-action@v2.1.7
uses: relative-ci/agent-action@v2.1.10
with:
key: ${{ secrets.RELATIVE_CI_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}