11name : Release Test
22
33on :
4+ workflow_dispatch :
45 pull_request :
56 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 }}
337
348jobs :
359 test_artifacts :
3610 name : " Test Package Artifacts"
3711 runs-on : SFDO-Tooling-Ubuntu
3812 steps :
3913 - uses : actions/checkout@v3
40- - name : Set up Python 3.8
14+ - name : Set up Python 3.11
4115 uses : actions/setup-python@v4
4216 with :
43- python-version : 3.8
17+ python-version : 3.11
4418 cache : pip
45- cache-dependency-path : " requirements/*.txt "
19+ cache-dependency-path : " pyproject.toml "
4620 - name : Install build tools
4721 run : pip install hatch
4822 - name : Test source tarball and binary wheel
@@ -67,45 +41,14 @@ jobs:
6741
6842 test_release :
6943 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.8
75- uses : actions/setup-python@v4
76- with :
77- python-version : 3.8
78- cache : pip
79- cache-dependency-path : " requirements/*.txt"
80- - name : Install Python dependencies
81- run : pip install -r requirements_dev.txt
82- - name : Install sfdx
83- run : |
84- mkdir sfdx
85- wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz | tar xJ -C sfdx --strip-components 1
86- echo $(realpath sfdx/bin) >> $GITHUB_PATH
87- - name : Authenticate Dev Hub
88- run : |
89- sfdx plugins --core
90- echo $SFDX_HUB_KEY_BASE64 | base64 --decode > sfdx.key
91- sfdx auth:jwt:grant --clientid $SFDX_CLIENT_ID --jwtkeyfile sfdx.key --username $SFDX_HUB_USERNAME --setdefaultdevhubusername -a hub
92- - name : Check out CumulusCI-Test
93- run : |
94- git clone https://github.com/SFDO-Tooling/CumulusCI-Test
95- - name : Run ci_feature flow
96- run : |
97- cd CumulusCI-Test
98- coverage run --append --rcfile=../pyproject.toml --source=../cumulusci $(which cci) flow run ci_feature --org scratch --delete-org
99- - name : Run ci_beta flow
100- run : |
101- cd CumulusCI-Test
102- coverage run --append --rcfile=../pyproject.toml --source=../cumulusci $(which cci) flow run ci_beta --org scratch --delete-org
103- - name : Run ci_master flow
104- run : |
105- cd CumulusCI-Test
106- coverage run --append --rcfile=../pyproject.toml --source=../cumulusci $(which cci) flow run ci_master --org scratch --delete-org
107- - name : Run release_beta flow
108- run : |
109- export SFDX_HUB_KEY="$(echo $SFDX_HUB_KEY_BASE64 | base64 --decode)"
110- cd CumulusCI-Test
111- coverage run --append --rcfile=../pyproject.toml --source=../cumulusci $(which 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