forked from loafle/openapi-generator-original
Separate Java Helidon functional tests (#13763)
* separate helidon functional tests * trigger build
This commit is contained in:
parent
d2a7cbcaf4
commit
042e250efa
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
name: Java Helidon Functional tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Java Helidon Functional tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java-version: [11, 17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java-version }}
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2/repository
|
||||||
|
~/.gradle
|
||||||
|
!~/.gradle/caches/*/plugin-resolution/
|
||||||
|
!~/.m2/repository/org/openapitools/
|
||||||
|
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
- name: Run unit tests
|
||||||
|
run: cd modules/openapi-generator && mvn --no-snapshot-updates --batch-mode -Dtest="**/functional/*Test" test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
- name: Publish unit test reports
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: surefire-test-results
|
||||||
|
path: '**/surefire-reports/TEST-*.xml'
|
38
.github/workflows/openapi-generator.yaml
vendored
38
.github/workflows/openapi-generator.yaml
vendored
@ -80,44 +80,6 @@ jobs:
|
|||||||
name: surefire-test-results
|
name: surefire-test-results
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
path: '**/surefire-reports/TEST-*.xml'
|
||||||
|
|
||||||
functional-test:
|
|
||||||
name: Functional tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java-version: [11, 17]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java-version }}
|
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
|
||||||
cache-name: cache-maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
!~/.gradle/caches/*/plugin-resolution/
|
|
||||||
!~/.m2/repository/org/openapitools/
|
|
||||||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
- name: Run unit tests
|
|
||||||
run: cd modules/openapi-generator && mvn --no-snapshot-updates --batch-mode -Dtest="**/functional/*Test" test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- name: Publish unit test reports
|
|
||||||
if: ${{ always() }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: surefire-test-results
|
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
name: Docs up-to-date
|
name: Docs up-to-date
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -205,3 +205,6 @@ public class JavaHelidonCommonCodegenPackagePrefixTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user