Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Oct 18, 2024
1 parent 984d9de commit 03058b1
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}
Expand Down Expand Up @@ -252,12 +252,12 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}
Expand Down Expand Up @@ -320,12 +320,12 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}
Expand Down Expand Up @@ -391,12 +391,12 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}
Expand Down Expand Up @@ -466,12 +466,12 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Base Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}
Expand Down Expand Up @@ -534,18 +534,18 @@ jobs:
# This is done because, based on how you execute Apex tests, the running user may have an active session (synchrously) or not (asynchronously).
# This data is also mocked during tests, but running the Apex tests sync & async serves within the pipeline acts as an extra level of
# integration testing to ensure that everything works with or without an active session.
- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Run Apex Tests Asynchronously'
run: npm run test:apex:nocoverage

- name: 'Run Apex Tests Synchronously'
run: npm run test:apex:nocoverage -- --synchronous

- name: 'Delete Scratch Org'
run: npx sf org delete scratch --no-prompt
if: ${{ always() }}

create-managed-package-beta:
environment: 'Demo Org'
environment: 'Base Scratch Org'
name: 'Create Managed Package Beta'
needs:
[
Expand Down Expand Up @@ -634,19 +634,10 @@ jobs:
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

# - name: 'Authorize Demo Org'
# shell: bash
# run: |
# echo ${{ env.PKG_DEMO_ORG_SFDX_URL }} > ./PKG_DEMO_ORG_SFDX_URL.txt
# 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 }}

- name: 'Create Scratch Org'
run: npx sf org create scratch --no-namespace --no-track-source --alias base_package_subscriber_scratch_org --duration-days 1 --definition-file ./config/scratch-orgs/base-scratch-def.json --wait 20 --set-default --json

- name: 'Create & Install Package Version'
# run: npx pwsh ./scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername nebula-logger-package-demo
run: npx pwsh ./scripts/build/create-and-install-package-version.ps1 -targetpackagealias '"Nebula Logger - Core"' -targetreadme ./README.md -targetusername base_package_subscriber_scratch_org

# This is the only place in Nebula Logger's pipeline where the `LoggerCore` test suite runs & the results are sent to Codecov.io.
Expand Down

0 comments on commit 03058b1

Please sign in to comment.