Skip to content

Commit e25d879

Browse files
committed
Copy latest linux and windows github workflows from the parent repo
1 parent a23d41f commit e25d879

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/linux.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,23 @@ jobs:
2020
os: [ubuntu-latest]
2121
steps:
2222
- name: Check out code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Set up JDK ${{ matrix.java }}
26-
uses: actions/setup-java@v4
26+
uses: actions/setup-java@v5
2727
with:
2828
distribution: 'temurin'
2929
java-version: ${{ matrix.java }}
30+
cache: gradle
3031

31-
- uses: actions/cache@v4
32+
- uses: actions/cache@v5
3233
with:
3334
path: ~/.m2/repository
3435
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
3536
restore-keys: |
3637
${{ runner.os }}-maven-
3738
38-
- uses: actions/cache@v4
39+
- uses: actions/cache@v5
3940
with:
4041
path: |
4142
~/.gradle/caches
@@ -44,8 +45,12 @@ jobs:
4445
restore-keys: |
4546
${{ runner.os }}-gradle-
4647
48+
- uses: gradle/actions/setup-gradle@v5
49+
with:
50+
gradle-version: '8.14.3'
51+
4752
- name: Setup Maven
48-
uses: s4u/setup-maven-action@v1.14.0
53+
uses: s4u/setup-maven-action@v1.19.0
4954
with:
5055
java-version: ${{ matrix.java }}
5156
maven-version: 3.8.8
@@ -57,15 +62,15 @@ jobs:
5762
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5863

5964
- name: Upload Maven build artifact
60-
uses: actions/upload-artifact@v4
65+
uses: actions/upload-artifact@v7
6166
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
6267
with:
6368
name: artifact
6469
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
6570

6671
- name: Test Gradle plugin usage
6772
shell: bash
68-
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
73+
run: gradle --project-dir modules/openapi-generator-gradle-plugin/samples/local-spec buildGoSdk --stacktrace
6974

7075
- name: Test Maven plugin integration
7176
if: matrix.java == '11'
@@ -85,14 +90,15 @@ jobs:
8590
os: [ubuntu-latest]
8691
steps:
8792
- name: Check out code
88-
uses: actions/checkout@v4
93+
uses: actions/checkout@v5
8994
- name: Setup Maven
90-
uses: s4u/setup-maven-action@v1.14.0
95+
uses: s4u/setup-maven-action@v1.19.0
9196
with:
9297
java-version: 11
9398
maven-version: 3.8.8
99+
cache: gradle
94100
- name: Download build artifact
95-
uses: actions/download-artifact@v4
101+
uses: actions/download-artifact@v8
96102
with:
97103
name: artifact
98104
- name: Run Ensures Script

.github/workflows/windows.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ jobs:
1818
matrix:
1919
java: [11, 17]
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
- name: Set up JDK ${{ matrix.java }}
23-
uses: actions/setup-java@v4
23+
uses: actions/setup-java@v5
2424
with:
2525
java-version: ${{ matrix.java }}
2626
distribution: 'temurin'
27+
cache: gradle
2728
- name: Cache maven dependencies
28-
uses: actions/cache@v4
29+
uses: actions/cache@v5
2930
env:
3031
cache-name: cache-maven-repository
3132
with:
@@ -39,7 +40,7 @@ jobs:
3940
${{ runner.os }}-build-${{ env.cache-name }}-
4041
${{ runner.os }}-build-
4142
- name: Setup Maven
42-
uses: s4u/setup-maven-action@v1.14.0
43+
uses: s4u/setup-maven-action@v1.19.0
4344
with:
4445
java-version: ${{ matrix.java }}
4546
maven-version: 3.8.8
@@ -54,6 +55,8 @@ jobs:
5455
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
5556
- name: Setup Gradle
5657
uses: gradle/gradle-build-action@v3
58+
with:
59+
gradle-version: '8.14.3'
5760
- name: Gradle tests
5861
run: |
5962
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace

0 commit comments

Comments
 (0)