Skip to content

Commit 22629d3

Browse files
authored
update gh action build (#693)
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
1 parent a235dbe commit 22629d3

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2024 Oracle and/or its affiliates. All rights reserved.
33
#
44
# This program and the accompanying materials are made available under the
55
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
- name: Set up JDK
4343
uses: actions/setup-java@v2
@@ -54,11 +54,11 @@ jobs:
5454
# If you wish to specify custom queries, you can do so here or in a config file.
5555
# By default, queries listed here will override any specified in a config file.
5656
# Prefix the list here with "+" to use these queries and those in the config file.
57-
57+
5858
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5959
# queries: security-extended,security-and-quality
6060

61-
61+
6262
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6363
# If this step fails, then you should remove it and run the build manually (see below)
6464
# - name: Autobuild
@@ -67,7 +67,7 @@ jobs:
6767
# ℹ️ Command-line programs to run using the OS shell.
6868
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6969

70-
# If the Autobuild fails above, remove it and uncomment the following three lines.
70+
# If the Autobuild fails above, remove it and uncomment the following three lines.
7171
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7272

7373
- run: |

.github/workflows/maven.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, 2023 Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2024 Oracle and/or its affiliates. All rights reserved.
33
#
44
# This program and the accompanying materials are made available under the
55
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -12,9 +12,13 @@ name: JAXWS RI
1212

1313
on: [push, pull_request]
1414

15+
concurrency:
16+
group: ${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
build:
17-
name: Test on JDK ${{ matrix.java_version }}
21+
name: Test on JDK ${{ matrix.java_version }}
1822
runs-on: ubuntu-latest
1923
outputs:
2024
jdk: ${{ steps.build.outputs.jdk }}
@@ -23,17 +27,12 @@ jobs:
2327
java_version: [ 17 ]
2428

2529
steps:
26-
- name: Cancel previous runs of this workflow
27-
uses: styfle/cancel-workflow-action@0.11.0
28-
with:
29-
all_but_latest: true
30-
access_token: ${{ github.token }}
3130
- name: Checkout for build
32-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3332
with:
3433
fetch-depth: 0
3534
- name: Set up JDK
36-
uses: actions/setup-java@v3
35+
uses: actions/setup-java@v4
3736
with:
3837
distribution: 'zulu'
3938
java-version: ${{ matrix.java_version }}
@@ -44,9 +43,9 @@ jobs:
4443
cd jaxws-ri
4544
mvn -B -V -U -C -Pstaging,oss-release,dependency-check clean verify org.glassfish.copyright:glassfish-copyright-maven-plugin:check -Dgpg.skip=true -Doss.disallow.snapshots=false -Dittest=true
4645
cd ..
47-
echo "::set-output name=jdk::${{ matrix.java_version }}"
46+
echo "jdk=${{ matrix.java_version }}" >> $GITHUB_OUTPUT
4847
- name: Upload binary image
49-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
5049
if: success()
5150
with:
5251
name: binary
@@ -64,16 +63,16 @@ jobs:
6463
runs-on: ubuntu-latest
6564
steps:
6665
- name: Set up JDK
67-
uses: actions/setup-java@v3
66+
uses: actions/setup-java@v4
6867
with:
6968
distribution: 'zulu'
7069
java-version: ${{ needs.build.outputs.jdk }}
7170
- name: Checkout tests
72-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7372
with:
7473
fetch-depth: 0
7574
- name: Download binaries
76-
uses: actions/download-artifact@v3
75+
uses: actions/download-artifact@v4
7776
with:
7877
name: binary
7978
- name: Test

0 commit comments

Comments
 (0)