diff --git a/.github/workflows/deploy.and.test.yml b/.github/workflows/deploy.and.test.yml index aabc5f36..8d43a062 100644 --- a/.github/workflows/deploy.and.test.yml +++ b/.github/workflows/deploy.and.test.yml @@ -15,11 +15,11 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: Install SFDX CLI and authorize DevHub + - name: Install SF CLI and authorize DevHub uses: apex-enterprise-patterns/setup-sfdx@v2-beta-1 #We're using a fork of https://github.com/sfdx-actions/setup-sfdx for safety with: sf-auth-url: ${{ secrets.DEVHUB_SFDXURL }} - - run: sf config set target-dev-hub SFDX-ENV --global #Even though the setup-sfdx action uses --setdefaultdevhubusername, it doesn't seem to stick since it uses --setdefaultusername so we brute force it here + - run: sf config set target-dev-hub SF-ENV --global #Even though the setup-sfdx action uses --setdefaultdevhubusername, it doesn't seem to stick since it uses --setdefaultusername so we brute force it here - run: sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source - run: sf project deploy start - run: sf apex run test --wait 5