Merge c4cc117fc82f61147f06cbaf6f576393120c1527 into feature/gh-ci #39
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: Apex 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 Apex 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 flow run ci_feature --org dev --delete-org |