Integrated example project for Mill into CI task #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mill plugin tests | |
| on: | |
| push: | |
| paths: | |
| - modules/openapi-generator-mill-plugin/** | |
| pull_request: | |
| paths: | |
| - modules/openapi-generator-mill-plugin/** | |
| jobs: | |
| test: | |
| name: Mill plugin tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 11 | |
| distribution: 'temurin' | |
| - name: Run tests | |
| env: | |
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
| run: | | |
| ./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true | |
| (cd modules/openapi-generator-mill-plugin/example/ && ./mill __.compile) | |
| (cd modules/openapi-generator-mill-plugin/example/ && ./mill openapi.validate) | |
| (cd modules/openapi-generator-mill-plugin/example/ && ./mill validateOpenapiSpec $(pwd)/api/petstore-invalid.yaml) | |