File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Windows tests
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - ' [5-9]+.[0-9]+.x'
8+ pull_request :
9+ branches :
10+ - master
11+ - ' [5-9]+.[0-9]+.x'
12+
13+ jobs :
14+ build :
15+ name : Build
16+ runs-on : windows-latest
17+ strategy :
18+ matrix :
19+ java : [8, 11]
20+ steps :
21+ - uses : actions/checkout@v3
22+ - name : Set up JDK ${{ matrix.java }}
23+ uses : actions/setup-java@v3
24+ with :
25+ java-version : ${{ matrix.java }}
26+ distribution : ' temurin'
27+ - name : Cache maven dependencies
28+ uses : actions/cache@v3
29+ env :
30+ cache-name : cache-maven-repository
31+ with :
32+ path : |
33+ ~/.m2/repository
34+ ~/.gradle
35+ !~/.gradle/caches/*/plugin-resolution/
36+ !~/.m2/repository/org/openapitools/
37+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-build-${{ env.cache-name }}-
40+ ${{ runner.os }}-build-
41+ - name : Run maven
42+ run : mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests
43+ env :
44+ GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
45+ - name : Setup Gradle
46+ uses : gradle/gradle-build-action@v2
47+ - name : Gradle tests
48+ run : |
49+ gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
You can’t perform that action at this time.
0 commit comments