forked from redhat-developer/rhdh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(yarn): upgrade to yarn v3 (redhat-developer#1810)
* chore(yarn): upgrade to yarn v3 Signed-off-by: Paul Schultz <pschultz@pobox.com> * update turbo Signed-off-by: Paul Schultz <pschultz@pobox.com> * update prettier config Signed-off-by: Paul Schultz <pschultz@pobox.com> * update eslint config Signed-off-by: Paul Schultz <pschultz@pobox.com> * update tsc config Signed-off-by: Paul Schultz <pschultz@pobox.com> * update lint-staged config Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix prettier Signed-off-by: Paul Schultz <pschultz@pobox.com> * add export-dynamic:clean Signed-off-by: Paul Schultz <pschultz@pobox.com> * update gh actions Signed-off-by: Paul Schultz <pschultz@pobox.com> * add pr-semantic Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix tsc config Signed-off-by: Paul Schultz <pschultz@pobox.com> * Update Dockerfile - use ENV YARN=$CONTAINER_SOURCE/.yarn/releases/yarn-3.8.6.cjs * Update Dockerfile - use ENV YARN=$CONTAINER_SOURCE/.yarn/releases/yarn-3.8.6.cjs * add tsc to wrappers Signed-off-by: Paul Schultz <pschultz@pobox.com> * include e2e-tests in workspace Signed-off-by: Paul Schultz <pschultz@pobox.com> * clean up turbo Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix file resolution Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix file resolution Signed-off-by: Paul Schultz <pschultz@pobox.com> * update dynamic files Signed-off-by: Paul Schultz <pschultz@pobox.com> * update docker workflow Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix yarn lock Signed-off-by: Paul Schultz <pschultz@pobox.com> * run prettier Signed-off-by: Paul Schultz <pschultz@pobox.com> * update some dynamic files Signed-off-by: Paul Schultz <pschultz@pobox.com> * update backstage deps Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix type errors Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix remaining tsc issues Signed-off-by: Paul Schultz <pschultz@pobox.com> * remove backend common Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix @RoadieHQ and @Parfuemerie-Douglas plugins Signed-off-by: Paul Schultz <pschultz@pobox.com> * update dynamic files Signed-off-by: Paul Schultz <pschultz@pobox.com> * fix tsconfig Signed-off-by: Paul Schultz <pschultz@pobox.com> * update workflow names Signed-off-by: Paul Schultz <pschultz@pobox.com> --------- Signed-off-by: Paul Schultz <pschultz@pobox.com> Co-authored-by: Nick Boldt <nboldt@redhat.com>
- Loading branch information
1 parent
2b64b6b
commit eae8a31
Showing
478 changed files
with
70,620 additions
and
204,412 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
title: | ||
name: Conventional Commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5 | ||
id: lint_pr_title | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Since we use `conventionalcommits` preset for | ||
# `@semantic-release/commit-analyzer`, this list has to match allowed types | ||
# Ref: https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.2.0/README.md#types | ||
types: | | ||
feat | ||
fix | ||
chore | ||
docs | ||
style | ||
refactor | ||
perf | ||
test | ||
revert | ||
requireScope: false | ||
subjectPattern: ^(?![A-Z]).+$ | ||
subjectPatternError: | | ||
The subject "{subject}" found in the pull request title "{title}" | ||
didn't match the configured pattern. Please ensure that the subject | ||
doesn't start with an uppercase character. | ||
ignoreLabels: | | ||
ignore-semantic-pull-request | ||
# For work-in-progress PRs you can typically use draft pull requests | ||
# from GitHub. However, private repositories on the free plan don't have | ||
# this option and therefore this action allows you to opt-in to using the | ||
# special "[WIP]" prefix to indicate this state. This will avoid the | ||
# validation of the PR title and the pull request checks remain pending. | ||
# Note that a second check will be reported if this is enabled. | ||
wip: true | ||
|
||
- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2 | ||
# When the previous steps fails, the workflow would stop. By adding this | ||
# condition you can continue the execution with the populated error message. | ||
if: always() && (steps.lint_pr_title.outputs.error_message != null) | ||
with: | ||
header: pr-title-lint-error | ||
message: | | ||
Hey there and thank you for opening this pull request! 👋🏼 | ||
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted. | ||
Details: | ||
``` | ||
${{ steps.lint_pr_title.outputs.error_message }} | ||
``` | ||
# Delete a previous comment when the issue has been resolved | ||
- if: ${{ steps.lint_pr_title.outputs.error_message == null }} | ||
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2 | ||
with: | ||
header: pr-title-lint-error | ||
delete: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Copyright 2023-2024 The Janus IDP Authors | ||
# | ||
# 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. | ||
|
||
name: PR | ||
|
||
on: | ||
pull_request: | ||
|
||
env: | ||
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }} | ||
TURBO_SCM_HEAD: ${{ github.sha }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Build with Node.js ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'yarn' | ||
|
||
- name: Setup local Turbo cache | ||
uses: dtinth/setup-github-actions-caching-for-turbo@cc723b4600e40a6b8815b65701d8614b91e2669e # v1 | ||
|
||
- name: Use app-config.example.yaml | ||
run: rm app-config.yaml && mv app-config.example.yaml app-config.yaml | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn install | ||
- name: Build packages | ||
run: yarn run build --concurrency=75% --affected | ||
|
||
test: | ||
name: Test with Node.js ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'yarn' | ||
|
||
- name: Setup local Turbo cache | ||
uses: dtinth/setup-github-actions-caching-for-turbo@cc723b4600e40a6b8815b65701d8614b91e2669e # v1 | ||
|
||
- name: Use app-config.example.yaml | ||
run: rm app-config.yaml && mv app-config.example.yaml app-config.yaml | ||
|
||
- name: Install dependencies | ||
run: | | ||
yarn install | ||
- name: Run prettier | ||
run: yarn prettier:check --concurrency=75% --affected | ||
|
||
- name: Run lint | ||
run: yarn run lint:check --concurrency=75% --affected | ||
|
||
- name: Run tests | ||
run: yarn run test --concurrency=75% --affected |
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
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
Oops, something went wrong.