-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test SFDX release candidate every week (#3558)
This PR extracts the SFDX integration tests into a reusable workflow so that we can test against the SFDX CLI's release candidates. It is intended to provide early warning of breaking changes. Edited to add: - integration test fixes for v4 that were missed in #3844 - `docutils`, which is required by `rst2ansi`
- Loading branch information
Showing
7 changed files
with
141 additions
and
99 deletions.
There are no files selected for viewing
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,88 @@ | ||
name: SFDX Integration Test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
sfdx-release-channel: | ||
required: false | ||
type: string | ||
default: stable | ||
secrets: | ||
CUMULUSCI_ORG_packaging: | ||
required: true | ||
CUMULUSCI_SERVICE_github: | ||
required: true | ||
CCITEST_APP_KEY: | ||
required: true | ||
SFDX_CLIENT_ID: | ||
required: true | ||
SFDX_HUB_KEY: | ||
required: true | ||
SFDX_HUB_KEY_BASE64: | ||
required: true | ||
SFDX_HUB_USERNAME: | ||
required: true | ||
|
||
env: | ||
CUMULUSCI_ORG_scratch: '{"config_file": "orgs/dev.json", "scratch": true}' | ||
CUMULUSCI_ORG_packaging: ${{ secrets.CUMULUSCI_ORG_packaging }} | ||
CUMULUSCI_SERVICE_github: ${{ secrets.CUMULUSCI_SERVICE_github }} | ||
GITHUB_APP_ID: 129383 | ||
GITHUB_APP_KEY: ${{ secrets.CCITEST_APP_KEY }} | ||
SFDX_CLIENT_ID: ${{ secrets.SFDX_CLIENT_ID }} | ||
SFDX_HUB_KEY: ${{ secrets.SFDX_HUB_KEY }} | ||
SFDX_HUB_KEY_BASE64: ${{ secrets.SFDX_HUB_KEY_BASE64 }} | ||
SFDX_HUB_USERNAME: ${{ secrets.SFDX_HUB_USERNAME }} | ||
|
||
jobs: | ||
test_release: | ||
name: "Test SFDX CLI" | ||
runs-on: SFDO-Tooling-Ubuntu | ||
concurrency: release | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
cache: pip | ||
cache-dependency-path: "pyproject.toml" | ||
- name: Set up uv | ||
uses: SFDO-Tooling/setup-uv@main | ||
with: | ||
version: "0.5.0" | ||
enable-cache: true | ||
- name: Install Python dependencies | ||
run: uv sync | ||
- name: Install Salesforce CLI | ||
env: | ||
CHANNEL: ${{ inputs.sfdx-release-channel }} | ||
run: | | ||
mkdir sfdx | ||
wget -qO- https://developer.salesforce.com/media/salesforce-cli/sf/channels/$CHANNEL/sf-linux-x64.tar.xz | tar xJ -C sfdx --strip-components 1 | ||
echo $(realpath sfdx/bin) >> $GITHUB_PATH | ||
- name: Authenticate Dev Hub | ||
run: | | ||
sf plugins --core | ||
echo $SFDX_HUB_KEY_BASE64 | base64 --decode > sfdx.key | ||
sf org login jwt --client-id $SFDX_CLIENT_ID --jwt-key-file sfdx.key --username $SFDX_HUB_USERNAME --set-default-dev-hub --alias hub | ||
- name: Check out CumulusCI-Test | ||
run: | | ||
git clone https://github.com/SFDO-Tooling/CumulusCI-Test | ||
- name: Run ci_feature flow | ||
run: | | ||
cd CumulusCI-Test | ||
uv run cci flow run ci_feature --org scratch --delete-org | ||
- name: Run ci_beta flow | ||
run: | | ||
cd CumulusCI-Test | ||
uv run cci flow run ci_beta --org scratch --delete-org | ||
- name: Run ci_master flow | ||
run: | | ||
cd CumulusCI-Test | ||
uv run cci flow run ci_master --org scratch --delete-org | ||
- name: Run release_beta flow | ||
run: | | ||
export SFDX_HUB_KEY="$(echo $SFDX_HUB_KEY_BASE64 | base64 --decode)" | ||
cd CumulusCI-Test | ||
uv run cci flow run release_beta --org packaging |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.