-
Notifications
You must be signed in to change notification settings - Fork 0
feat(NO-JIRA): add pnpm support to shared frontend workflows #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,11 +23,15 @@ | |
| description: 'Use asdf-vm for version management (reads from .tool-versions)' | ||
| type: boolean | ||
| default: false | ||
| package-manager: | ||
| description: 'Package manager to use: "yarn" or "pnpm". Callers using pnpm must pass all commands explicitly.' | ||
| type: string | ||
| default: 'yarn' | ||
|
|
||
| # Cache configuration | ||
| # Same options as PR workflow - see frontend-pr-workflow.yml for detailed comments | ||
| cache-mode: | ||
| description: 'Cache strategy: full, node_modules-only, or yarn-cache-only' | ||
| description: 'Cache strategy: "full" (node_modules + package manager cache), "node_modules-only", "yarn-cache-only", or "pnpm-store-only"' | ||
| type: string | ||
| default: 'full' | ||
| disable-restore-keys: | ||
|
|
@@ -322,19 +326,21 @@ | |
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Node with Cache | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@v1 | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 329 in .github/workflows/frontend-deploy-workflow.yml
|
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
| cache-mode: ${{ inputs.cache-mode }} | ||
| disable-restore-keys: ${{ inputs.disable-restore-keys }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Setup Jarvis | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@v1 | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 339 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| jarvis-branch: ${{ inputs.jarvis-branch }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Run pre-build command | ||
| if: inputs.pre-build-command != '' | ||
|
|
@@ -421,19 +427,21 @@ | |
| fetch-depth: 0 # Required for SonarCloud | ||
|
|
||
| - name: Setup Node with Cache | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@v1 | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 430 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
| cache-mode: ${{ inputs.cache-mode }} | ||
| disable-restore-keys: ${{ inputs.disable-restore-keys }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Setup Jarvis | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@v1 | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 440 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| jarvis-branch: ${{ inputs.jarvis-branch }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Run pre-test command | ||
| if: inputs.pre-test-command != '' | ||
|
|
@@ -469,23 +477,25 @@ | |
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Node with Cache | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@v1 | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 480 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
| cache-mode: ${{ inputs.cache-mode }} | ||
| disable-restore-keys: ${{ inputs.disable-restore-keys }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Setup Jarvis | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@v1 | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 490 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
|
||
| with: | ||
| jarvis-branch: ${{ inputs.jarvis-branch }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Setup Playwright | ||
| if: inputs.integration-test-framework == 'playwright' | ||
| uses: Typeform/.github/shared-actions/setup-playwright@v1 | ||
| uses: Typeform/.github/shared-actions/setup-playwright@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 498 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
|
|
||
| - name: Run pre-test command | ||
| if: inputs.pre-test-command != '' | ||
|
|
@@ -529,7 +539,7 @@ | |
|
|
||
| steps: | ||
| - name: Run Cypress Functional Tests | ||
| uses: Typeform/.github/shared-actions/run-cypress-functional@v1 | ||
| uses: Typeform/.github/shared-actions/run-cypress-functional@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 542 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
|
|
@@ -544,6 +554,7 @@ | |
| artifact-retention-days: '7' | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| # Job 5: Cypress Visual Tests (runs in parallel with other tests) | ||
| cypress-visual: | ||
|
|
@@ -555,7 +566,7 @@ | |
|
|
||
| steps: | ||
| - name: Run Cypress Visual Tests | ||
| uses: Typeform/.github/shared-actions/run-cypress-visual@v1 | ||
| uses: Typeform/.github/shared-actions/run-cypress-visual@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 569 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
|
|
@@ -575,6 +586,7 @@ | |
| VRT_APIURL: ${{ secrets.VRT_APIURL }} | ||
| VRT_APIKEY: ${{ secrets.VRT_APIKEY }} | ||
| VRT_PROJECT: ${{ secrets.VRT_PROJECT }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| # Job 6: Playwright Visual Tests (runs in parallel with other tests) | ||
| playwright-visual: | ||
|
|
@@ -586,7 +598,7 @@ | |
|
|
||
| steps: | ||
| - name: Run Playwright Visual Tests | ||
| uses: Typeform/.github/shared-actions/run-playwright-visual@v1 | ||
| uses: Typeform/.github/shared-actions/run-playwright-visual@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 601 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
|
|
@@ -606,6 +618,7 @@ | |
| VRT_APIURL: ${{ secrets.VRT_APIURL }} | ||
| VRT_APIKEY: ${{ secrets.VRT_APIKEY }} | ||
| VRT_PROJECT: ${{ secrets.VRT_PROJECT }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| # Job 7: SonarCloud Analysis (waits for unit tests if enabled) | ||
| sonarcloud: | ||
|
|
@@ -614,14 +627,15 @@ | |
| needs: [build, unit-tests, check-verification] | ||
| permissions: | ||
| contents: read | ||
| uses: Typeform/.github/.github/workflows/sonarcloud-scan.yml@v1 | ||
| uses: Typeform/.github/.github/workflows/sonarcloud-scan.yml@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 630 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| app-name: ${{ inputs.app-name }} | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
| runner: ${{ inputs.runner }} | ||
| coverage-artifact-name: ${{ inputs.run-unit-tests && format('coverage-{0}', github.run_id) || '' }} | ||
| timeout: ${{ inputs.sonarcloud-timeout }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
| secrets: | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| SONAR_CLOUD_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }} | ||
|
|
@@ -666,13 +680,14 @@ | |
| git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
|
|
||
| - name: Setup Node with Cache | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@v1 | ||
| uses: Typeform/.github/shared-actions/setup-node-with-cache@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 683 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| node-version: ${{ inputs.node-version }} | ||
| use-asdf: ${{ inputs.use-asdf }} | ||
| cache-mode: ${{ inputs.cache-mode }} | ||
| disable-restore-keys: ${{ inputs.disable-restore-keys }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: Download Build Artifacts | ||
| uses: Typeform/.github/shared-actions/download-build-artifacts@v1 | ||
|
|
@@ -681,10 +696,11 @@ | |
| output-dir: ${{ inputs.build-artifact-download-path || inputs.build-output-dir }} | ||
|
|
||
| - name: Setup Jarvis | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@v1 | ||
| uses: Typeform/.github/shared-actions/setup-jarvis@feat/pnpm-support-shared-frontend-workflows | ||
|
Check failure on line 699 in .github/workflows/frontend-deploy-workflow.yml
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics |
||
| with: | ||
| jarvis-branch: ${{ inputs.jarvis-branch }} | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| package-manager: ${{ inputs.package-manager }} | ||
|
|
||
| - name: AWS auth | ||
| uses: Typeform/.github-private/actions/aws-auth@aws-auth-0.0.2 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be removed before merging. It was done to simplify testing scenarios in the following repos: admin-home, smart-forms-builder, paprikations, performance-analytics