From 157a6bb13344f635a7fad3d7cb3ff9a0973fefd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Colladon?= Date: Tue, 12 Dec 2023 14:08:13 +0100 Subject: [PATCH] build: upgrade pipeline --- .github/linters/.cspell.json | 3 ++- .../workflows/manual-deprecate-versions.yml | 4 +-- .github/workflows/manual-manage-versions.yml | 4 +-- .github/workflows/on-main-push.yml | 18 ++++++------- .github/workflows/on-pull-request.yml | 26 +++++++++---------- .github/workflows/reusable-build.yml | 6 ++--- .mega-linter.yml | 5 ++-- .release-please-manifest.json | 1 + README.md | 2 +- lychee.toml | 2 ++ release-please-config.json | 5 ++++ 11 files changed, 42 insertions(+), 34 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 lychee.toml create mode 100644 release-please-config.json diff --git a/.github/linters/.cspell.json b/.github/linters/.cspell.json index 79a1f0222..91d9784bf 100644 --- a/.github/linters/.cspell.json +++ b/.github/linters/.cspell.json @@ -6,7 +6,8 @@ "**/megalinter.yml", "**/yarn.lock", "**/.yarnrc.yml", - "**/src/metadata/**" + "**/src/metadata/**", + "**/src/service/typeHandlerFactory.ts" ], "language": "en", "noConfigSearch": true, diff --git a/.github/workflows/manual-deprecate-versions.yml b/.github/workflows/manual-deprecate-versions.yml index 4c27368d0..cb59fce97 100644 --- a/.github/workflows/manual-deprecate-versions.yml +++ b/.github/workflows/manual-deprecate-versions.yml @@ -18,10 +18,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/manual-manage-versions.yml b/.github/workflows/manual-manage-versions.yml index a80a5c0dd..0660fb081 100644 --- a/.github/workflows/manual-manage-versions.yml +++ b/.github/workflows/manual-manage-versions.yml @@ -23,10 +23,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/on-main-push.yml b/.github/workflows/on-main-push.yml index 0791255d1..f76c6f74f 100644 --- a/.github/workflows/on-main-push.yml +++ b/.github/workflows/on-main-push.yml @@ -21,11 +21,9 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} version: ${{ steps.release.outputs.version }} steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 id: release with: - release-type: node - package-name: sfdx-git-delta token: ${{ secrets.RELEASE_PAT }} release: @@ -34,10 +32,10 @@ jobs: if: needs.prepare-release.outputs.release_created == 'true' steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' @@ -61,13 +59,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'e2e/head' fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} @@ -91,10 +89,10 @@ jobs: if: needs.prepare-release.outputs.release_created != 'true' steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -124,7 +122,7 @@ jobs: sfdx plugins - name: Checkout e2e test subject - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'e2e/head' fetch-depth: 0 diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 78e36fd04..f3db40086 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -20,12 +20,12 @@ jobs: if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -50,10 +50,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -74,16 +74,16 @@ jobs: steps: # Git Checkout - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # MegaLinter - name: MegaLinter # You can override MegaLinter flavor used to have faster performances - # More info at https://megalinter.io/flavors/ - uses: oxsecurity/megalinter/flavors/javascript@v6 + # More info at https://megalinter.io/latest/flavors/ + uses: oxsecurity/megalinter/flavors/javascript@v7 env: # All available variables are described in documentation - # https://megalinter.io/configuration/ + # https://megalinter.io/latest/config-file/ APPLY_FIXES: all VALIDATE_ALL_CODEBASE: true # ADD CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY @@ -100,10 +100,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -137,10 +137,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} @@ -170,7 +170,7 @@ jobs: sfdx plugins - name: Checkout e2e test subject - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'e2e/head' fetch-depth: 0 diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 6bcc38d28..48d5c9eb6 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 @@ -32,7 +32,7 @@ jobs: continue-on-error: true - name: Checkout e2e sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'e2e/head' fetch-depth: 0 diff --git a/.mega-linter.yml b/.mega-linter.yml index 537b99aa0..1ec99fa17 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -1,6 +1,6 @@ --- # Configuration file for MegaLinter -# See all available variables at https://megalinter.io/configuration/ and in linters documentation +# See all available variables at https://megalinter.io/latest/config-file/ and in linters documentation APPLY_FIXES: all # all, none, or list of linter keys # ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default @@ -10,7 +10,8 @@ APPLY_FIXES: all # all, none, or list of linter keys # - SPELL # Uncomment to disable checks of spelling mistakes DISABLE_LINTERS: - SPELL_MISSPELL + - TYPESCRIPT_STANDARD + - TYPESCRIPT_PRETTIER SHOW_ELAPSED_TIME: true FILEIO_REPORTER: false -JAVASCRIPT_DEFAULT_STYLE: prettier # DISABLE_ERRORS: true # Uncomment if you want MegaLinter to detect errors but not block CI to pass diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/README.md b/README.md index 4e5fd3509..99392c023 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@
- + SGD logo

SFDX-Git-Delta

diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 000000000..c53e126c6 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,2 @@ +exclude_mail = true +exclude_path = ["CHANGELOG.md"] \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..7a4374ec1 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,5 @@ +{ + "packages": { + ".": {} + } +} \ No newline at end of file