Micronaut 4 #797
Workflow file for this run
This file contains 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: Verify Sample Projects | |
on: [push, pull_request] | |
env: | |
JHI_E2E_HEADLESS: true | |
permissions: | |
contents: read | |
jobs: | |
samples: | |
name: ${{ matrix.app-type }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/app | |
if: >- | |
!contains(github.event.head_commit.message, '[ci skip]') && | |
!contains(github.event.head_commit.message, '[skip ci]') && | |
!contains(github.event.pull_request.title, '[skip ci]') && | |
!contains(github.event.pull_request.title, '[ci skip]') && | |
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci')) | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
app-type: | |
- gradle-jwt-react | |
- mvn-jwt-angular | |
- mvn-jwt-redis-angular | |
- mvn-no-client | |
- mvn-oauth-angular | |
- gradle-oauth-angular | |
- mvn-ms-consul-jwt | |
- gradle-ms-eureka-oauth | |
- jdl-default-app | |
steps: | |
- uses: jhipster/actions/create-app-path@v0 | |
- uses: jhipster/actions/setup-git@v0 | |
- uses: jhipster/actions/restore-cache@v0 | |
with: | |
npm: true | |
- uses: actions/checkout@v4 | |
with: | |
path: generator-jhipster-micronaut | |
fetch-depth: 2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: 'Install blueprint' | |
run: npm install && npm link | |
working-directory: ${{ github.workspace }}/generator-jhipster-micronaut | |
- name: 'Generate Project' | |
run: mhipster generate-sample ${{ matrix.app-type }} --skip-jhipster-dependencies --force | |
env: | |
JHI_PROFILE: dev | |
JHI_PROJECT_VERSION: 3.0.0-git | |
- uses: jhipster/actions/compare-sample@v0 | |
with: | |
generator-path: generator-jhipster-micronaut | |
cmd: mhipster generate-sample ${{ matrix.app-type }} --skip-jhipster-dependencies --force --skip-install | |
- name: 'Start Dependency Containers' | |
run: npm run ci:e2e:prepare | |
- name: 'Run Server Tests' | |
run: npm run ci:backend:test | |
id: backend | |
- name: 'Run Client Tests' | |
run: npm run ci:frontend:test --if-present | |
- name: 'Build App' | |
run: npm run ci:e2e:package | |
- name: 'E2E Tests' | |
run: npm run ci:e2e:run --if-present | |
- name: 'BACKEND: Store failure logs' | |
uses: actions/upload-artifact@v3 | |
if: always() && steps.backend.outcome == 'failure' | |
with: | |
name: log-${{ matrix.app-type }} | |
path: | | |
${{ github.workspace }}/app/build/test-results | |
${{ github.workspace }}/app/target/surefire-reports | |
- name: Dump docker logs | |
if: always() | |
uses: jwalton/gh-docker-logs@v2 |