Skip to content

Commit

Permalink
Merge branch 'develop' into sivaja/feat/asc-18271-implement-sonar-scan
Browse files Browse the repository at this point in the history
  • Loading branch information
zivaja authored Jan 19, 2024
2 parents 85a679e + 5519719 commit 6fb5b6b
Show file tree
Hide file tree
Showing 1,262 changed files with 48,523 additions and 81,403 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules/
storybook-build/
build/
build/

dist/
jest.config.js
44 changes: 44 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'import', 'jest'],
root: true,
rules: {
'@typescript-eslint/no-empty-function': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
ignorePatterns: [
// Ignore build artifacts
'**/build',
'**/coverage',
'**/.webpackCache',
'**/node_modules',
'**/images',

// Ignore generated files
'**/__generated__',
'**/generated',
'*.graphql',
],
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
env: {
node: true,
browser: true,
jest: true,
},
};
30 changes: 19 additions & 11 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,29 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: build storybook
run: npm run storybook:build
run: pnpm run storybook:build

- name: publish on s3
uses: jakejarvis/s3-sync-action@master
Expand Down
48 changes: 33 additions & 15 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Production release pipeline

on:
workflow_dispatch:
inputs:
release_as:
description: 'release as'
required: true

jobs:
publish:
Expand All @@ -16,27 +20,41 @@ jobs:
git config user.name "bmo-amity-bot"
git config user.email "[email protected]"
- name: install node
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: increase version (patch)
run: pnpm standard-version --yes
if: github.event.inputs.release_as == 'patch'

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: increase version (minor)
run: pnpm standard-version --yes --release-as minor
if: github.event.inputs.release_as == 'minor'

- name: increase version
run: npx standard-version --yes
- name: increase version (major)
run: pnpm standard-version --yes --release-as major
if: github.event.inputs.release_as == 'major'

- name: build
run: npm run build
run: pnpm run build

- name: publish on npm
uses: JS-DevTools/npm-publish@v1
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,29 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: build storybook
run: npm run storybook:build
run: pnpm run storybook:build

- name: publish on s3
uses: jakejarvis/s3-sync-action@master
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,29 @@ jobs:
- name: install node
uses: actions/setup-node@v2

- name: cache deps
uses: actions/cache@v2
id: cache-deps
- uses: pnpm/action-setup@v2
with:
path: |
**/node_modules
**/.eslintcache
key: node_modules-${{ hashFiles('**/package-lock.json') }}
version: 8
run_install: false

- name: install deps
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm ci
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: eslint checks
run: npm run lint
run: pnpm run lint

- name: cache test results
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
build/
dist/
storybook-build/
.idea/

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@fortawesome:registry=https://registry.npmjs.org
122 changes: 0 additions & 122 deletions .storybook/decorators/FluidControl.js

This file was deleted.

Loading

0 comments on commit 6fb5b6b

Please sign in to comment.