diff --git a/.github/workflows/apex-tests-pr.yml b/.github/workflows/apex-tests-pr.yml index dc495c8..2cc9b6c 100644 --- a/.github/workflows/apex-tests-pr.yml +++ b/.github/workflows/apex-tests-pr.yml @@ -1,12 +1,9 @@ -name: Salesforce CI +name: Salesforce CI - Build and Test Package on PR on: - workflow_dispatch: - inputs: - branch: - description: "Branch to run the tests on" - required: true - default: "main" + pull_request: + branches: + - main jobs: build: @@ -19,9 +16,9 @@ jobs: - name: Install Salesforce CLI run: | - npm install sfdx-cli - node_modules/sfdx-cli/bin/run --version - node_modules/sfdx-cli/bin/run plugins --core + npm install --global sfdx-cli + sfdx --version + sfdx plugins --core - name: Checkout repository uses: actions/checkout@v2 diff --git a/.sf/config.json b/.sf/config.json index 0ac0f8d..21fd207 100644 --- a/.sf/config.json +++ b/.sf/config.json @@ -1,3 +1,4 @@ { - "target-org": "Nylas_SDK_ORG" + "target-org": "Nylas_SDK_ORG", + "target-dev-hub": "DevHub" } \ No newline at end of file diff --git a/DEVHUB_SFDX_URL.txt b/DEVHUB_SFDX_URL.txt new file mode 100644 index 0000000..906632a --- /dev/null +++ b/DEVHUB_SFDX_URL.txt @@ -0,0 +1 @@ +force://PlatformCLI::5Aep861E3ECfhV22nbqgDemgp_R0Jhi1mx3I0rli81yyHC6GlT.k3kwAvAUJuwLEMIMXxpW5LJdYervzYJPJCJo@nylas.my.salesforce.com \ No newline at end of file