Skip to content

Commit

Permalink
Merge branch 'main' into feature/silent
Browse files Browse the repository at this point in the history
  • Loading branch information
gavignon authored May 22, 2023
2 parents 7719356 + 3484e31 commit a0208cd
Show file tree
Hide file tree
Showing 117 changed files with 23,811 additions and 11,420 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ exclude_patterns:
- __tests__/**/*
- __mocks__/**/*
- output/**/*
- coverage/**/*
- reports/**/*
- .github/**/*
- lib/**/*
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
.next
output
coverage
reports
.github
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Happy linting! 💖
*/
module.exports = {
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'prettier'],
ignorePatterns: ['lib/**/*', 'node_modules', '.next', 'output', 'coverage'],
ignorePatterns: ['lib/**/*', 'node_modules', '.next', 'output', 'reports'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
Expand Down
29 changes: 8 additions & 21 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
<!--
Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.
Thanks for sending a pull request! Please make sure to have a look to the contribution guidelines, then fill out the blanks below.
-->

## What does this pull request contain?

---

<!--
Check all that apply
-->

- [ ] Added (for new features).
- [ ] Changed (for changes in existing functionality).
- [ ] Deprecated (for soon-to-be removed features).
- [ ] Removed (for now removed features).
- [ ] Fixed (for any bug fixes).
- [ ] Security (for vulnerability fixes).

## Explain your changes
# Explain your changes

---

<!--
Describe with your own words the content of the Pull Request
-->

## Does this close any currently open issues?
# Does this close any currently open issues?

---

Expand All @@ -36,17 +21,19 @@ Thanks for sending a pull request! Please make sure you click the link above to

closes #

- [ ] Jest test added to check the fix is applied.
- [ ] Jest tests added to cover the fix.
- [ ] NUT tests added to cover the fix.
- [ ] E2E tests added to cover the fix.

## Any particular element that can be tested locally
# Any particular element that can be tested locally

---

<!--
Provide any new parameters or new behaviour with existing parameters
-->

## Any other comments
# Any other comments

---

Expand Down
71 changes: 71 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
name: Install
description: Install dependencies

inputs:
prod-context:
required: false
description: drive installation mode
default: "false"

runs:
using: composite
steps:
- name: ⚙️ Enable Corepack
run: corepack enable
shell: bash

- name: Cache prep
id: yarn-config
run: |
echo "CACHE_FOLDER=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
echo "node-version="node-$(node --version)"" >> $GITHUB_OUTPUT
shell: bash
env:
YARN_ENABLE_GLOBAL_CACHE: 'false'

- name: Restore yarn cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }}
key: yarn-download-cache-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-download-cache-
- name: Restore node_modules
id: yarn-nm-cache
uses: actions/cache@v3
with:
path: node_modules
key: yarn-nm-cache-${{ runner.os }}-${{ steps.yarn-config.outputs.node-version }}-${{ github.ref }}-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}

- name: Restore yarn install state
id: yarn-install-state-cache
uses: actions/cache@v3
with:
path: .yarn/
key: yarn-install-state-cache-${{ runner.os }}-${{ steps.yarn-config.outputs.node-version }}-${{ github.ref }}-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}

- name: Install dependencies in production mode
if: ${{ inputs.prod-context == 'true' }}
run: yarn install --immutable --check-cache --prod
shell: bash
env:
# Overrides/align yarnrc.yml options (v3, v4) for a CI context
YARN_ENABLE_GLOBAL_CACHE: 'false' # Use local cache folder to keep downloaded archives
YARN_NM_MODE: 'hardlinks-local' # Reduce node_modules size
YARN_INSTALL_STATE_PATH: '.yarn/install-state.gz' # Might speed up resolution step when node_modules present
# Other environment variables
HUSKY: '0' # By default do not run HUSKY install

- name: Install dependencies in integration mode
if: ${{ inputs.prod-context == 'false' }}
run: yarn install --immutable --check-cache
shell: bash
env:
# Overrides/align yarnrc.yml options (v3, v4) for a CI context
YARN_ENABLE_GLOBAL_CACHE: 'false' # Use local cache folder to keep downloaded archives
YARN_NM_MODE: 'hardlinks-local' # Reduce node_modules size
YARN_INSTALL_STATE_PATH: '.yarn/install-state.gz' # Might speed up resolution step when node_modules present
# Other environment variables
HUSKY: '0' # By default do not run HUSKY install
11 changes: 9 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: "build"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
versioning-strategy: increase
commit-message:
prefix: "build"
allow:
- dependency-type: "all"
- dependency-type: "all"
7 changes: 7 additions & 0 deletions .github/linters/.checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# You can see all available properties here: https://github.com/bridgecrewio/checkov#configuration-using-a-config-file
quiet: true
skip-check:
- CKV_DOCKER_2
- CKV2_GHA_1
- CKV_GHA_7
149 changes: 149 additions & 0 deletions .github/linters/.cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"ignorePaths": [
"CHANGELOG.md",
"**/node_modules/**",
"**/.git/**",
"megalinter",
"**/yarn.lock",
"**/.yarnrc.yml"
],
"language": "en",
"noConfigSearch": true,
"version": "0.2",
"words": [
"Afile",
"CODECOV",
"CODEOWNERS",
"Cherfaoui",
"Colladon",
"Commitlint",
"Corepack",
"corepack",
"FORCEIGNORE",
"FORCEINCLUDE",
"FULLNAME",
"Flexi",
"hardlinks",
"Iframe",
"METAFILE",
"Mehdi",
"Nimn",
"Omni",
"Parens",
"SFDX",
"STATICRESOURCE",
"Scontrol",
"Sebastien",
"Sfdx",
"Translationline",
"Unpackaged",
"Wavehandler",
"amannn",
"anotherignore",
"apexskier",
"apiversion",
"appli",
"authprovider",
"authproviders",
"behaviour",
"brqh",
"codeclimate",
"codecov",
"commandsstop",
"commitlint",
"contentassets",
"customindex",
"datacategorygroup",
"datacategorygroups",
"destructiveignore",
"destructiveinclude",
"emailservices",
"flexipage",
"flexipages",
"flowtest",
"flowtests",
"flowtype",
"forceignore",
"forceinclude",
"friendlyname",
"geodata",
"iframe",
"ignorewarnings",
"iife",
"indx",
"lcov",
"linebreak",
"linify",
"lintstagedrc",
"loglevel",
"lwcc",
"mdapi",
"megalinter",
"mehdisfdc",
"metafile",
"mjyhjbm",
"mkdirs",
"mocharc",
"mockprune",
"multilines",
"mutingpermissionset",
"mutingpermissionsets",
"myexperiencebundle",
"nonblock",
"notexist",
"notificationtypes",
"notiftype",
"numstat",
"nycrc",
"oauthcustomscope",
"oauthcustomscopes",
"oclif",
"omni",
"omnistudio",
"oxsecurity",
"pastsha",
"permissionset",
"permissionsetgroup",
"permissionsetgroups",
"permissionsets",
"piquouze",
"postdestructivechanges",
"postpack",
"predestructivechanges",
"predicat",
"quotepath",
"recentsha",
"rulesets",
"samlssoconfig",
"samlssoconfigs",
"scolladon",
"scontrols",
"sfdx",
"sgdignore",
"staticresources",
"stefanzweifel",
"struc",
"subfolders",
"targetname",
"testkit",
"testlevel",
"testtest",
"trivyignore",
"unmanaged",
"unmocked",
"unpackaged",
"venv",
"wagoid",
"wapp",
"wcomp",
"wdash",
"wdpr",
"wearerequired",
"weblink",
"weblinks",
"wlens",
"xmlbuilder",
"yarnrc",
"\u00c0gain"
]
}
13 changes: 13 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"threshold": 0,
"reporters": ["html", "markdown"],
"ignore": [
"**/node_modules/**",
"**/.git/**",
"**/*cache*/**",
"**/.github/**",
"**/report/**",
"**/img/**",
"**/__tests__/**"
]
}
45 changes: 0 additions & 45 deletions .github/workflows/main.yml

This file was deleted.

Loading

0 comments on commit a0208cd

Please sign in to comment.