Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/actions/artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ runs:
steps:
- run: printenv
shell: bash
- run: cd "$GITHUB_ACTION_PATH/../../.." && pwd && npm ci
shell: bash
- run: npx ts-node "$GITHUB_ACTION_PATH/../../../tools/scripts/artifacts/main.ts"
shell: bash
2 changes: 0 additions & 2 deletions .github/actions/run-many/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ inputs:
runs:
using: 'composite'
steps:
- run: cd "$GITHUB_ACTION_PATH/../../.." && pwd && npm ci
shell: bash
- run: npx ts-node "$GITHUB_ACTION_PATH/../../../tools/scripts/run-many/run-many.ts" ${{ inputs.target }} ${{ inputs.jobIndex }} ${{ inputs.jobCount }} ${{ inputs.base }} ${{ inputs.ref }}
shell: bash
13 changes: 12 additions & 1 deletion .github/workflows/fe-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Frontend Build Workflow

on:
workflow_call:
secrets:
DOT_NPMRC:
required: true
inputs:
GHA_REF:
type: string
Expand Down Expand Up @@ -40,11 +43,19 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use .npmrc
uses: bduff9/use-npmrc@v1.1
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}

- name: Install modules
run: npm ci

- name: Fetch base branch
run: git fetch origin ${{ inputs.GHA_BASE }}:${{ inputs.GHA_BASE }} || true

- name: Build and Storybook
uses: collaborationFactory/github-actions/.github/actions/run-many@master
uses: collaborationFactory/github-actions/.github/actions/run-many@poc/pipeline-node-cache-optimization
with:
target: ${{ matrix.target }}
jobIndex: ${{ matrix.jobIndex }}
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/fe-code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Frontend Code Quality Workflow

on: workflow_call
on:
workflow_call:
secrets:
DOT_NPMRC:
required: true

jobs:
code-quality:
Expand All @@ -27,6 +31,14 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use .npmrc
uses: bduff9/use-npmrc@v1.1
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}

- name: Install modules
run: npm ci

- name: Formatter
run: npx nx format:check --base=origin/${{ github.event.pull_request.base.ref }}

Expand All @@ -37,7 +49,7 @@ jobs:
run: git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} || true

- name: Unit Tests
uses: collaborationFactory/github-actions/.github/actions/run-many@master
uses: collaborationFactory/github-actions/.github/actions/run-many@poc/pipeline-node-cache-optimization
with:
target: ${{ matrix.target }}
jobIndex: ${{ matrix.jobIndex }}
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/fe-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Frontend E2E Workflow
on:
workflow_call:
secrets:
DOT_NPMRC:
required: true
PERCY_TOKEN:
required: false
inputs:
Expand Down Expand Up @@ -39,6 +41,14 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use .npmrc
uses: bduff9/use-npmrc@v1.1
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}

- name: Install modules
run: npm ci

- name: Install Cypress Binary
run: npx cypress install

Expand All @@ -48,7 +58,7 @@ jobs:
- name: Affected Regression Tests
id: regressionTests
continue-on-error: true
uses: collaborationFactory/github-actions/.github/actions/run-many@master
uses: collaborationFactory/github-actions/.github/actions/run-many@poc/pipeline-node-cache-optimization
with:
target: ${{ matrix.target }}
jobIndex: ${{ matrix.jobIndex }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fe-pr-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: npm ci

- name: Build and Push to Jfrog NPM Registry
uses: collaborationFactory/github-actions/.github/actions/artifacts@master
uses: collaborationFactory/github-actions/.github/actions/artifacts@poc/code-coverage-in-code-quality-pr-pipeline
env:
JFROG_BASE64_TOKEN: ${{ secrets.JFROG_BASE64_TOKEN }}
JFROG_URL: ${{ secrets.JFROG_URL }}
Expand Down