From 6c366dd1bff8d506e05769dfabf0b07f023324cf Mon Sep 17 00:00:00 2001 From: nicolasparrague Date: Tue, 4 Jun 2024 11:23:36 -0500 Subject: [PATCH] --amend --- .github/workflows/code-coverage.yml | 16 ++++++++++++---- config/project-scratch-def.json | 1 - 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index d42d4a1..34d1132 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -4,19 +4,27 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + - name: Install Dependencies - run: npm install sfdx-cli + run: | + sudo npm install -g sfdx-cli + - name: Populate auth file run: 'echo "${{ secrets.SALESFORCE_AUTH_URL }}" > ./SALESFORCE_AUTH_URL.txt' + - name: Authenticate Dev Hub - run: 'node_modules/sfdx-cli/bin/run force:auth:sfdxurl:store -f ./SALESFORCE_AUTH_URL.txt -a devhub -d' + run: 'sfdx force:auth:sfdxurl:store -f ./SALESFORCE_AUTH_URL.txt -a devhub -d' + - name: Create Scratch Org - run: node_modules/sfdx-cli/bin/run force:org:create --targetdevhubusername devhub --setdefaultusername --definitionfile config/project-scratch-def.json --setalias ciorg --durationdays 1 + run: sfdx org create scratch --target-dev-hub devhub --definition-file config/project-scratch-def.json --alias ciorg --duration 1 --set-default + - name: Deploy source run: node_modules/sfdx-cli/bin/run force:source:push + - name: Run Apex tests run: node_modules/sfdx-cli/bin/run force:apex:test:run --codecoverage --resultformat human -d ./ + - name: Upload code coverage for Apex to Codecov.io uses: codecov/codecov-action@v2 with: diff --git a/config/project-scratch-def.json b/config/project-scratch-def.json index 2cd039a..bb72192 100644 --- a/config/project-scratch-def.json +++ b/config/project-scratch-def.json @@ -2,7 +2,6 @@ "orgName": "Demo company", "edition": "Developer", "features": ["EnableSetPasswordInApi"], - "lockerServiceNext" : false, "settings": { "lightningExperienceSettings": { "enableS1DesktopEnabled": true