|
1 | 1 | name: Release Test |
2 | 2 |
|
3 | 3 | on: |
| 4 | + workflow_dispatch: |
4 | 5 | pull_request: |
5 | 6 | types: [opened, synchronize, reopened] # Default |
6 | | - workflow_call: |
7 | | - secrets: |
8 | | - CUMULUSCI_ORG_packaging: |
9 | | - required: true |
10 | | - CUMULUSCI_SERVICE_github: |
11 | | - required: true |
12 | | - CCITEST_APP_KEY: |
13 | | - required: true |
14 | | - SFDX_CLIENT_ID: |
15 | | - required: true |
16 | | - SFDX_HUB_KEY: |
17 | | - required: true |
18 | | - SFDX_HUB_KEY_BASE64: |
19 | | - required: true |
20 | | - SFDX_HUB_USERNAME: |
21 | | - required: true |
22 | | - |
23 | | -env: |
24 | | - CUMULUSCI_ORG_scratch: '{"config_file": "orgs/dev.json", "scratch": true}' |
25 | | - CUMULUSCI_ORG_packaging: ${{ secrets.CUMULUSCI_ORG_packaging }} |
26 | | - CUMULUSCI_SERVICE_github: ${{ secrets.CUMULUSCI_SERVICE_github }} |
27 | | - GITHUB_APP_ID: 129383 |
28 | | - GITHUB_APP_KEY: ${{ secrets.CCITEST_APP_KEY }} |
29 | | - SFDX_CLIENT_ID: ${{ secrets.SFDX_CLIENT_ID }} |
30 | | - SFDX_HUB_KEY: ${{ secrets.SFDX_HUB_KEY }} |
31 | | - SFDX_HUB_KEY_BASE64: ${{ secrets.SFDX_HUB_KEY_BASE64 }} |
32 | | - SFDX_HUB_USERNAME: ${{ secrets.SFDX_HUB_USERNAME }} |
33 | 7 |
|
34 | 8 | jobs: |
35 | 9 | test_artifacts: |
@@ -67,50 +41,14 @@ jobs: |
67 | 41 |
|
68 | 42 | test_release: |
69 | 43 | name: "Test Release Flows" |
70 | | - runs-on: SFDO-Tooling-Ubuntu |
71 | | - concurrency: release |
72 | | - steps: |
73 | | - - uses: actions/checkout@v3 |
74 | | - - name: Set up Python 3.11 |
75 | | - uses: actions/setup-python@v4 |
76 | | - with: |
77 | | - python-version: 3.11 |
78 | | - cache: pip |
79 | | - cache-dependency-path: "pyproject.toml" |
80 | | - - name: Set up uv |
81 | | - uses: SFDO-Tooling/setup-uv@main |
82 | | - with: |
83 | | - version: "0.5.0" |
84 | | - enable-cache: true |
85 | | - - name: Install Python dependencies |
86 | | - run: uv sync |
87 | | - - name: Install sfdx |
88 | | - run: | |
89 | | - mkdir sfdx |
90 | | - wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz | tar xJ -C sfdx --strip-components 1 |
91 | | - echo $(realpath sfdx/bin) >> $GITHUB_PATH |
92 | | - - name: Authenticate Dev Hub |
93 | | - run: | |
94 | | - sfdx plugins --core |
95 | | - echo $SFDX_HUB_KEY_BASE64 | base64 --decode > sfdx.key |
96 | | - sfdx auth:jwt:grant --clientid $SFDX_CLIENT_ID --jwtkeyfile sfdx.key --username $SFDX_HUB_USERNAME --setdefaultdevhubusername -a hub |
97 | | - - name: Check out CumulusCI-Test |
98 | | - run: | |
99 | | - git clone https://github.com/SFDO-Tooling/CumulusCI-Test |
100 | | - - name: Run ci_feature flow |
101 | | - run: | |
102 | | - cd CumulusCI-Test |
103 | | - uv run cci flow run ci_feature --org scratch --delete-org |
104 | | - - name: Run ci_beta flow |
105 | | - run: | |
106 | | - cd CumulusCI-Test |
107 | | - uv run cci flow run ci_beta --org scratch --delete-org |
108 | | - - name: Run ci_master flow |
109 | | - run: | |
110 | | - cd CumulusCI-Test |
111 | | - uv run cci flow run ci_master --org scratch --delete-org |
112 | | - - name: Run release_beta flow |
113 | | - run: | |
114 | | - export SFDX_HUB_KEY="$(echo $SFDX_HUB_KEY_BASE64 | base64 --decode)" |
115 | | - cd CumulusCI-Test |
116 | | - uv run cci flow run release_beta --org packaging |
| 44 | + uses: ./.github/workflows/release_test_sfdx.yml |
| 45 | + with: |
| 46 | + sfdx-release-channel: stable |
| 47 | + secrets: |
| 48 | + CUMULUSCI_ORG_packaging: ${{ secrets.CUMULUSCI_ORG_packaging }} |
| 49 | + CUMULUSCI_SERVICE_github: ${{ secrets.CUMULUSCI_SERVICE_github }} |
| 50 | + CCITEST_APP_KEY: ${{ secrets.CCITEST_APP_KEY }} |
| 51 | + SFDX_CLIENT_ID: ${{ secrets.SFDX_CLIENT_ID }} |
| 52 | + SFDX_HUB_KEY: ${{ secrets.SFDX_HUB_KEY }} |
| 53 | + SFDX_HUB_KEY_BASE64: ${{ secrets.SFDX_HUB_KEY_BASE64 }} |
| 54 | + SFDX_HUB_USERNAME: ${{ secrets.SFDX_HUB_USERNAME }} |
0 commit comments