Skip to content

Commit 8d2ebf4

Browse files
authored
Merge pull request #46 from purecloudlabs/FixGithubActionsV4
[NO-JIRA] Fix Github Workflows and Actions v4
2 parents dec8587 + 1aa1026 commit 8d2ebf4

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/openapi-generator.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ jobs:
1515
name: Build
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Set up JDK 8
20-
uses: actions/setup-java@v1
20+
uses: actions/setup-java@v4
2121
with:
22+
distribution: temurin
2223
java-version: 8
2324
- name: Cache maven dependencies
24-
uses: actions/cache@v2
25+
uses: actions/cache@v4
2526
env:
2627
cache-name: cache-maven-repository
2728
with:
@@ -38,7 +39,7 @@ jobs:
3839
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3940
- run: ls -la modules/openapi-generator-cli/target
4041
- name: Upload openapi-generator-cli.jar artifact
41-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4243
with:
4344
name: openapi-generator-cli.jar
4445
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
@@ -50,13 +51,14 @@ jobs:
5051
needs:
5152
- build
5253
steps:
53-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v4
5455
- name: Set up JDK 8
55-
uses: actions/setup-java@v1
56+
uses: actions/setup-java@v4
5657
with:
58+
distribution: temurin
5759
java-version: 8
5860
- name: Cache maven dependencies
59-
uses: actions/cache@v2
61+
uses: actions/cache@v4
6062
env:
6163
cache-name: cache-maven-repository
6264
with:
@@ -73,7 +75,7 @@ jobs:
7375
run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
7476
- name: Publish unit test reports
7577
if: ${{ always() }}
76-
uses: actions/upload-artifact@v2
78+
uses: actions/upload-artifact@v4
7779
with:
7880
name: surefire-test-results
7981
path: '**/surefire-reports/TEST-*.xml'

.github/workflows/sonar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: ${{ github.repository_owner == 'OpenAPITools' }}
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616
- name: Set up JDK 11
17-
uses: actions/setup-java@v2
17+
uses: actions/setup-java@v4
1818
with:
19-
distribution: 'adopt'
19+
distribution: 'temurin'
2020
java-version: 11
2121
- name: Compile with Maven
2222
run: mvn -B -q clean install jacoco:report

0 commit comments

Comments
 (0)