Merge c0d8facdfbe655ac1f95b9dbcca8834e9c607ecd into feature/gh-ci #38
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
name: Robot Tests | |
on: | |
push: | |
branches: | |
- feature/** | |
- master | |
env: | |
CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain | |
CUMULUSCI_SERVICE_github: ${{ secrets.CUMULUSCI_SERVICE_github }} | |
jobs: | |
unit_tests: | |
name: "Run Robot Framework tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install sfdx | |
run: | | |
mkdir sfdx | |
wget -qO- https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz | tar xJ -C sfdx --strip-components 1 | |
./sfdx/install | |
echo ${{ secrets.SFDX_AUTH_URL }} > sfdx_auth | |
sfdx force:auth:sfdxurl:store -f sfdx_auth -d | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.8" | |
- name: Install CumulusCI | |
run: | | |
python -m pip install -U pip | |
pip install cumulusci | |
- run: | | |
cci task run robot --org dev -o vars BROWSER:headlesschrome | |
- name: Delete scratch org | |
if: always() | |
run: | | |
cci org scratch_delete dev |