-
Notifications
You must be signed in to change notification settings - Fork 4
chore: dependency cleanup [skip-validate-pr] #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mshanemc
wants to merge
7
commits into
main
Choose a base branch
from
sm/cleanup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
29cfb93
chore: circle => gha
mshanemc 182c334
ci: no nuts/secrets for tests
mshanemc 5ed9520
chore: standard files
mshanemc ca479bb
chore: dependency cleanup
mshanemc 4f933b5
docs: readme link broken
mshanemc 2a09f7c
style: typo
mshanemc f125aea
Merge branch 'main' into sm/cleanup
saracope File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,12 @@ | ||
| 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 | ||
| with: | ||
| mergeMethod: squash |
This file contains hidden or 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: | ||
| - version, tag and github release | ||
| - publish | ||
| 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: | | ||
| { | ||
| "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}", | ||
| "blocks": [ | ||
| { | ||
| "type": "header", | ||
| "text": { | ||
| "type": "plain_text", | ||
| "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}" | ||
| } | ||
| }, | ||
| { | ||
| "type": "section", | ||
| "text": { | ||
| "type": "mrkdwn", | ||
| "text": "repo: ${{ github.event.workflow_run.repository.html_url }}\nworkflow name:${{ github.event.workflow_run.name }}\njob url: ${{ github.event.workflow_run.html_url }}" | ||
| } | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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,36 @@ | ||
| name: manual release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| token: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
| - name: Conventional Changelog Action | ||
| id: changelog | ||
| uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2 | ||
| # overriding some of the basic behaviors to just get the changelog | ||
| with: | ||
| git-user-name: SF-CLI-BOT | ||
| git-user-email: [email protected] | ||
| github-token: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
| output-file: false | ||
| # always do the release, even if there are no semantic commits | ||
| skip-on-empty: false | ||
| tag-prefix: '' | ||
| - uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216 | ||
| id: packageVersion | ||
| with: | ||
| path: 'package.json' | ||
| prop_path: 'version' | ||
| - name: Create Github Release | ||
| uses: actions/create-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: ${{ steps.packageVersion.outputs.prop }} | ||
| release_name: ${{ steps.packageVersion.outputs.prop }} |
This file contains hidden or 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,18 @@ | ||
| # test | ||
| name: version, tag and github release | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| release: | ||
| uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main | ||
| secrets: inherit | ||
|
|
||
| # most repos won't use this | ||
| # depends on previous job to avoid git collisions, not for any functionality reason | ||
| # docs: | ||
| # uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main | ||
| # secrets: inherit | ||
| # needs: release |
This file contains hidden or 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,55 @@ | ||
| name: publish | ||
|
|
||
| on: | ||
| release: | ||
| types: [released] | ||
| # support manual release in case something goes wrong and needs to be repeated or tested | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: tag that needs to publish | ||
| type: string | ||
| required: true | ||
| jobs: | ||
| npm: | ||
| uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main | ||
| with: | ||
| ctc: true | ||
| sign: true | ||
| tag: prerelease | ||
| githubTag: ${{ github.event.release.tag_name || inputs.tag }} | ||
| secrets: inherit | ||
| canaries: | ||
| needs: [npm] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| # switched this from a docker container. GHA could probably use a Go image, but this may be more performant | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.14 | ||
| - name: Run canaries | ||
| run: | | ||
| TOKEN=$(curl -f -X POST ${{ secrets.RUNTIME_ID_SERVICETOKEN_ENDPOINT }} -d "{\"username\":\"${{ secrets.RUNTIME_ID_SERVICE_USERNAME }}\", \"password\":\"${{ secrets.RUNTIME_ID_SERVICE_PASSWORD }}\"}" -s --retry 3 | jq -r ".raw_id_token") | ||
| echo "$TOKEN" | docker login ${{ secrets.RUNTIME_REGISTRY }} -u x-runtime-id --password-stdin | ||
|
|
||
| echo "running canary" | ||
| docker run -e HEROKU_API_TOKEN=${{ secrets.HEROKU_API_TOKEN }} \ | ||
| -e CIRCLECI_API_TOKEN=$CIRCLECI_API_TOKEN \ | ||
| runtime-registry.herokai.com/s/heroku/evergreen-canary-keeper/cli:v1.7.0 \ | ||
| evergreen-canary-keeper -run \ | ||
| -name eg-canary-function-cli \ | ||
| sfdx-cli-plugins="@salesforce/plugin-functions@prerelease" | ||
| npm-promote: | ||
| needs: [canaries] | ||
| runs-on: | ||
| ubuntu-latest | ||
| # if you try to use yarn here, it will attempt to use the wrong registry and throw 401s | ||
| steps: | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: latest | ||
| - run: | | ||
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
| npm run promote-dist-tags |
This file contains hidden or 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: tests | ||
| on: | ||
| push: | ||
| branches-ignore: [main] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| unit-tests: | ||
| uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main | ||
| inclusion: | ||
| uses: salesforcecli/github-workflows/.github/workflows/inclusionTest.yml@main |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -16,26 +16,18 @@ | |
| "@hk/functions-core": "npm:@heroku/[email protected]", | ||
| "@oclif/core": "^1.6.0", | ||
| "@salesforce/core": "^3.19.4", | ||
| "@salesforce/plugin-org": "^1.11.2", | ||
| "@salesforce/sf-plugins-core": "^1.7.2", | ||
| "@salesforce/ts-sinon": "^1.3.21", | ||
| "@salesforce/ts-types": "^1.5.20", | ||
| "axios": "^0.27.2", | ||
| "axios-debug-log": "^0.8.4", | ||
| "chalk": "^4.1.2", | ||
| "cli-ux": "^5.6.7", | ||
| "cloudevents": "^4.0.3", | ||
| "date-fns": "^2.28.0", | ||
| "execa": "^5.1.1", | ||
| "fs-extra": "^10.0.1", | ||
| "global-agent": "^3.0.0", | ||
| "handlebars": "^4.7.7", | ||
| "jsforce": "^1.11.0", | ||
| "kbpgp": "^2.1.15", | ||
| "lodash": "^4.17.21", | ||
| "netrc-parser": "^3.1.6", | ||
| "node-fetch": "^3.2.3", | ||
| "sha256-file": "^1.0.0", | ||
| "uuid": "^8.3.2" | ||
| }, | ||
| "devDependencies": { | ||
|
|
@@ -47,8 +39,8 @@ | |
| "@salesforce/dev-scripts": "^2.0.3", | ||
| "@salesforce/plugin-command-reference": "^1.3.18", | ||
| "@salesforce/prettier-config": "^0.0.2", | ||
| "@salesforce/ts-sinon": "^1.3.21", | ||
| "@types/fs-extra": "^9.0.13", | ||
| "@types/node-fetch": "^3.0.3", | ||
| "@types/nodegit": "^0.27.10", | ||
| "@types/semver": "^7.3.9", | ||
| "@types/sha256-file": "^1.0.1", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.