-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from forcedotcom/ew/update-template
Update template files
- Loading branch information
Showing
29 changed files
with
3,250 additions
and
1,854 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright (c) 2024, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
module.exports = { | ||
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/library'], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"productTag": "a1aAH00000004XFYAY", | ||
"defaultBuild": "sf.r1.preprod" | ||
"productTag": "ADD_YOUR_PRODUCT_TAG", | ||
"defaultBuild": "offcore.tooling.54" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### What does this PR do? | ||
|
||
### What issues does this PR fix or reference? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
day: 'saturday' | ||
versioning-strategy: 'increase' | ||
labels: | ||
- 'dependencies' | ||
open-pull-requests-limit: 5 | ||
pull-request-branch-name: | ||
separator: '-' | ||
commit-message: | ||
# cause a release for non-dev-deps | ||
prefix: fix(deps) | ||
# no release for dev-deps | ||
prefix-development: chore(dev-deps) | ||
ignore: | ||
- dependency-name: '@salesforce/dev-scripts' | ||
- dependency-name: '*' | ||
update-types: ['version-update:semver-major'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: automerge | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '42 2,5,8,11 * * *' | ||
|
||
jobs: | ||
automerge: | ||
uses: salesforcecli/github-workflows/.github/workflows/automerge.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: create-github-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- prerelease/** | ||
tags-ignore: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
type: string | ||
description: 'Name to use for the prerelease: beta, dev, etc. NOTE: If this is already set in the package.json, it does not need to be passed in here.' | ||
|
||
jobs: | ||
release: | ||
uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main | ||
secrets: inherit | ||
with: | ||
prerelease: ${{ inputs.prerelease }} | ||
# If this is a push event, we want to skip the release if there are no semantic commits | ||
# However, if this is a manual release (workflow_dispatch), then we want to disable skip-on-empty | ||
# This helps recover from forgetting to add semantic commits ('fix:', 'feat:', etc.) | ||
skip-on-empty: ${{ github.event_name == 'push' }} | ||
# docs: | ||
# # Most repos won't use this | ||
# # Depends on the 'release' job to avoid git collisions, not for any functionality reason | ||
# needs: release | ||
# secrets: inherit | ||
# if: ${{ github.ref_name == 'main' }} | ||
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: devScripts | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '50 6 * * 0' | ||
|
||
jobs: | ||
update: | ||
uses: salesforcecli/github-workflows/.github/workflows/devScriptsUpdate.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: failureNotifications | ||
on: | ||
workflow_run: | ||
workflows: | ||
- publish | ||
- create-github-release | ||
types: | ||
- completed | ||
jobs: | ||
failure-notify: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- name: Announce Failure | ||
id: slack | ||
uses: slackapi/[email protected] | ||
env: | ||
# for non-CLI-team-owned plugins, you can send this anywhere you like | ||
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
with: | ||
# Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D | ||
# Only copy over the "blocks" array to the Block Kit Builder | ||
payload: | | ||
{ | ||
"text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}", | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": ":bh-alert: Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }} :bh-alert:" | ||
} | ||
}, | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: publish | ||
on: | ||
release: | ||
# both release and prereleases | ||
types: [published] | ||
# support manual release in case something goes wrong and needs to be repeated or tested | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: github tag that needs to publish | ||
type: string | ||
required: true | ||
jobs: | ||
getDistTag: | ||
outputs: | ||
tag: ${{ steps.distTag.outputs.tag }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.tag_name || inputs.tag }} | ||
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main | ||
id: distTag | ||
npm: | ||
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main | ||
needs: [getDistTag] | ||
with: | ||
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }} | ||
githubTag: ${{ github.event.release.tag_name || inputs.tag }} | ||
|
||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: tests | ||
on: | ||
push: | ||
branches-ignore: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
yarn-lockfile-check: | ||
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main | ||
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs | ||
linux-unit-tests: | ||
needs: yarn-lockfile-check | ||
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main | ||
windows-unit-tests: | ||
needs: linux-unit-tests | ||
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main | ||
|
||
# Uncomment to enable NUT testing in Github Actions | ||
# nuts: | ||
# needs: linux-unit-tests | ||
# uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main | ||
# secrets: inherit | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, windows-latest] | ||
# fail-fast: false | ||
# with: | ||
# os: ${{ matrix.os }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: pr-validation | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited] | ||
# only applies to PRs that want to merge to main | ||
branches: [main] | ||
|
||
jobs: | ||
pr-validation: | ||
uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
{ | ||
"nyc": { | ||
"extends": "@salesforce/dev-config/nyc", | ||
"lines": 87, | ||
"statements": 87, | ||
"functions": 89, | ||
"branches": 74, | ||
"exclude": ["**/*.d.ts", "test/**/*.ts"] | ||
"extends": "@salesforce/dev-config/nyc" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Greeting | ||
|
||
Hello, %s |
Oops, something went wrong.