From 7a7176eaeb6b9afb09475473e3652c31f28c971b Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Tue, 24 Dec 2024 14:31:47 -0300 Subject: [PATCH] ignore .github/workflows/samples.yml --- .github/workflows/samples.yml | 109 ---------------------------------- .yo-resolve | 1 + 2 files changed, 1 insertion(+), 109 deletions(-) delete mode 100644 .github/workflows/samples.yml diff --git a/.github/workflows/samples.yml b/.github/workflows/samples.yml deleted file mode 100644 index fb16e572..00000000 --- a/.github/workflows/samples.yml +++ /dev/null @@ -1,109 +0,0 @@ -name: Verify Sample Projects -concurrency: - # Group PRs by head_ref, push to main branch by commit id, and others branch by ref. - group: ${{ github.workflow }}-${{ github.head_ref || (github.ref == 'refs/heads/main' && github.sha) || github.ref }} - cancel-in-progress: true -on: - push: - branches: - - 'main' - - '**maintenance' - paths-ignore: - - 'package*.json' - pull_request: - branches: - - '*' -permissions: - contents: read -env: - FORCE_COLOR: 2 -jobs: - build-matrix: - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.build.outputs.matrix }} - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - - id: build - run: | - npm install - ./cli/cli.cjs github-build-matrix - samples: - name: ${{ matrix.job-name || matrix.sample }} - runs-on: ${{ matrix.os }} - needs: build-matrix - defaults: - run: - working-directory: ${{ github.workspace }}/app - timeout-minutes: 30 - strategy: - fail-fast: false - matrix: ${{fromJson(needs.build-matrix.outputs.matrix)}} - steps: - - uses: actions/checkout@v4 - with: - path: generator-jhipster-ionic - fetch-depth: 2 - - uses: jhipster/actions/setup-runner@v0 - with: - java-version: ${{ matrix.java-version }} - node-version: ${{ matrix.node-version }} - maven-cache: true - gradle-cache: true - binary-dir: ${{ github.workspace }}/generator-jhipster-ionic/cli/ - - run: npm install - working-directory: ${{ github.workspace }}/generator-jhipster-ionic - - run: cli.cjs generate-sample ${{ matrix.sample }} --skip-jhipster-dependencies --skip-install ${{ matrix.extra-args }} - - uses: jhipster/actions/compare-sample@v0 - id: compare - if: >- - github.event.pull_request && - !contains(github.event.pull_request.labels.*.name, 'pr: disable-compare') - with: - generator-path: generator-jhipster-ionic - cmd: cli.cjs generate-sample ${{ matrix.sample }} --skip-jhipster-dependencies --skip-install ${{ matrix.extra-args }} - - run: npm run ci:backend:test - if: steps.compare.outputs.equals != 'true' - id: backend - - run: npm run ci:e2e:package - if: steps.compare.outputs.equals != 'true' - - run: npm run ci:frontend:test --if-present - if: steps.compare.outputs.equals != 'true' - - run: npm run ci:e2e:prepare - if: steps.compare.outputs.equals != 'true' - - run: npm run ci:e2e:run --if-present - if: steps.compare.outputs.equals != 'true' - id: e2e - - name: Store backend test failure logs - uses: actions/upload-artifact@v4 - if: always() && steps.backend.outcome == 'failure' - with: - name: log-${{ matrix.job-name || matrix.sample }} - path: | - ${{ github.workspace }}/app/build/test-results/**/*.xml - ${{ github.workspace }}/app/target/surefire-reports - - name: Store cypress screenshots - uses: actions/upload-artifact@v4 - if: always() && steps.e2e.outcome == 'failure' - with: - name: screenshots-${{ matrix.job-name || matrix.sample }} - path: ${{ github.workspace }}/app/**/cypress/screenshots - - name: Dump docker logs - if: always() - uses: jwalton/gh-docker-logs@v2 - check-samples: - permissions: - contents: none - runs-on: ubuntu-latest - needs: [samples] - if: always() - steps: - - run: | - echo '${{ toJSON(needs) }}' - if [ 'skipped' == '${{ needs.samples.result }}' ] || [ 'success' == '${{ needs.samples.result }}' ] || [ 'closed' == '${{ github.event.action }}' ]; then - exit 0 - fi - exit 1 diff --git a/.yo-resolve b/.yo-resolve index 6454cf71..5b69d82c 100644 --- a/.yo-resolve +++ b/.yo-resolve @@ -1 +1,2 @@ README.md skip +.github/workflows/samples.yml skip