-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
69 additions
and
68 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
|
@@ -82,7 +82,7 @@ jobs: | |
|
||
- name: 'Verify Apex with SFDX Scanner' | ||
run: | | ||
npm run sfdx:plugins:link:scanner | ||
npm run sf:plugins:link:scanner | ||
npm run scan:apex | ||
# TODO - uncomment - temporarily commented-out due to an issue with apexdocs in the pipeline | ||
|
@@ -150,24 +150,24 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }} | ||
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }} | ||
|
||
- name: 'Create Base Scratch Org' | ||
run: npx sfdx force:org:create --nonamespace --durationdays 1 --definitionfile ./config/scratch-orgs/base-scratch-def.json --wait 20 --setdefaultusername --json | ||
run: npx sf org create scratch --no-namespace --duration-days 1 --definition-file ./config/scratch-orgs/base-scratch-def.json --wait 20 --set-default --json | ||
|
||
- name: 'Deploy Source to Scratch Org' | ||
run: npx sfdx force:source:deploy --sourcepath ./nebula-logger/ | ||
run: npx sf project deploy start --source-dir ./nebula-logger/ | ||
|
||
- name: 'Assign Logger Admin Permission Set' | ||
run: npm run permset:assign:admin | ||
|
||
- name: 'Validate Custom Metadata Records' | ||
run: npx sfdx force:apex:execute --apexcodefile ./scripts/build/validate-custom-metadata-records.apex | ||
run: npx sf apex run --file ./scripts/build/validate-custom-metadata-records.apex | ||
|
||
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session. | ||
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously. | ||
|
@@ -211,27 +211,27 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }} | ||
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }} | ||
|
||
- name: 'Create Experience Cloud Scratch Org' | ||
run: npx sfdx force:org:create --nonamespace --durationdays 1 --definitionfile ./config/scratch-orgs/experience-cloud-scratch-def.json --wait 20 --setdefaultusername --json | ||
run: npx sf org create scratch --no-namespace --duration-days 1 --definition-file ./config/scratch-orgs/experience-cloud-scratch-def.json --wait 20 --set-default --json | ||
|
||
- name: 'Deploy Test Experience Site Metadata' | ||
run: npm run experience:deploy | ||
|
||
- name: 'Deploy Source to Scratch Org' | ||
run: npx sfdx force:source:deploy --sourcepath ./nebula-logger/ | ||
run: npx sf project deploy start --source-dir ./nebula-logger/ | ||
|
||
- name: 'Assign Logger Admin Permission Set' | ||
run: npm run permset:assign:admin | ||
|
||
- name: 'Validate Custom Metadata Records' | ||
run: npx sfdx force:apex:execute --apexcodefile ./scripts/build/validate-custom-metadata-records.apex | ||
run: npx sf apex run --file ./scripts/build/validate-custom-metadata-records.apex | ||
|
||
# Nebula Logger has functionality that queries the AuthSession object when the current user has an active session. | ||
# The code should work with or without an active session, so the pipeline runs the tests twice - asynchronously and synchronously. | ||
|
@@ -284,7 +284,7 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
|
@@ -324,7 +324,7 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
|
@@ -335,7 +335,7 @@ jobs: | |
shell: bash | ||
run: | | ||
echo ${{ env.PKG_DEMO_ORG_SFDX_URL }} > ./PKG_DEMO_ORG_SFDX_URL.txt | ||
npx sfdx auth sfdxurl store --sfdx-url-file ./PKG_DEMO_ORG_SFDX_URL.txt --alias nebula-logger-package-demo | ||
npx sf org login sfdx-url --sfdx-url-file ./PKG_DEMO_ORG_SFDX_URL.txt --alias nebula-logger-package-demo | ||
env: | ||
PKG_DEMO_ORG_SFDX_URL: ${{ secrets.NEBULA_PKG_DEMO_SANDBOX_SFDX_URL }} | ||
|
||
|
@@ -357,9 +357,9 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action Bot" | ||
# npm run sfdx:plugins:link:bummer | ||
echo y | npx sfdx plugins:install @jongpie/sfdx-bummer-plugin --force | ||
npx sfdx bummer:package:aliases:sort | ||
# npm run sf:plugins:link:bummer | ||
echo y | npx sf plugins install @jongpie/sfdx-bummer-plugin --force | ||
npx sf bummer:package:aliases:sort | ||
npx prettier --write ./sfdx-project.json | ||
git add ./sfdx-project.json | ||
git commit -m "Created new core unlocked package version" | ||
|
@@ -392,7 +392,7 @@ jobs: | |
shell: bash | ||
run: | | ||
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key | ||
npx sfdx auth jwt grant --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub | ||
env: | ||
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }} | ||
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }} | ||
|
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
Oops, something went wrong.