chore: update rpms.lock.yaml [skip-build] (#5037) #209
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
| # Copyright Red Hat, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # Jira: RHIDP-13232 — Unit test coverage baseline for main and release branches | |
| # Feature umbrella: RHDHPLAN-851, Epic: RHIDP-13242 | |
| # | |
| # Runs the full test suite on push to main/release-* and uploads coverage to | |
| # Codecov. This establishes the project-level baseline that Codecov uses to | |
| # calculate coverage deltas in PRs (via the `rhdh` flag and carryforward). | |
| # | |
| # PR-level coverage is handled by the upload step in pr.yaml; this workflow | |
| # only covers push events so the two never duplicate work. | |
| name: Coverage Baseline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-1.9 | |
| - release-1.1[0-9] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| coverage: | |
| name: Unit Test Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Setup local Turbo cache | |
| uses: dtinth/setup-github-actions-caching-for-turbo@cc723b4600e40a6b8815b65701d8614b91e2669e # v1 | |
| with: | |
| cache-prefix: turbogha-coverage | |
| - name: Use app-config.example.yaml | |
| run: rm app-config.yaml && mv app-config.example.yaml app-config.yaml | |
| - name: Install dependencies | |
| uses: backstage/actions/yarn-install@2cd6978b476cbdc39fec48346f8b6ca13199dd6a # v0.7.8 | |
| with: | |
| cache-prefix: ${{ runner.os }}-${{ hashFiles('.nvmrc') }} | |
| - name: Install jest-junit reporter | |
| run: | | |
| npm install jest-junit@17.0.0 --ignore-scripts --prefix ${{ runner.temp }}/jest-junit | |
| ln -s ${{ runner.temp }}/jest-junit/node_modules/jest-junit node_modules/jest-junit | |
| mkdir -p ${{ runner.temp }}/test-results | |
| - name: Run tests with coverage | |
| id: tests | |
| env: | |
| JEST_JUNIT_OUTPUT_DIR: ${{ runner.temp }}/test-results | |
| JEST_JUNIT_CLASSNAME: '{filepath}' | |
| JEST_JUNIT_UNIQUE_OUTPUT_NAME: 'true' | |
| run: yarn run test --continue -- --reporters=default --reporters=jest-junit | |
| - name: Upload coverage to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| flags: rhdh | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() && steps.tests.outcome != 'skipped' }} | |
| uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1 | |
| with: | |
| flags: rhdh | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ${{ runner.temp }}/test-results | |
| fail_ci_if_error: false | |
| - name: Install Python dependencies | |
| run: pip install -r python/requirements-dev.txt -r python/requirements.txt | |
| - name: Run Python tests with coverage | |
| run: pytest scripts/install-dynamic-plugins/test_install-dynamic-plugins.py -v --cov=scripts/install-dynamic-plugins --cov-report=lcov:coverage-install-dynamic-plugins.lcov | |
| - name: Upload install-dynamic-plugins coverage to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| files: coverage-install-dynamic-plugins.lcov | |
| flags: install-dynamic-plugins | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false |