chore: data changes from scratch org #11
Workflow file for this run
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
# DX@Scale CI/CD Template for GitHub | |
#---------------------------------------------------------------------------------------------------- | |
# Follows reference pipeline available at docs.dxatscale.io | |
# | |
#----------------------------------------------------------------------------------------------------- | |
# To know more about dxatscale, visit https://docs.dxatscale.io | |
# To know more on sfpowerscripts, visit- https://docs.dxatscale.io/sfpowerscripts/sfpowerscripts | |
# This pipeline is used to validate an incoming change using a dev environment fetched from the CI pool | |
name: "PR Validation - Auto Triggered" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- main | |
- release/** | |
workflow_dispatch: | |
#Set the environment variables for tracking metrics | |
#env: | |
#SFPOWERSCRIPTS_NEWRELIC: 'true' | |
#SFPOWERSCRIPTS_NEWRELIC_API_KEY: '${{ secrets.NEWRELIC_INSIGHT_INSERT_KEYS }}' | |
#SFPOWERSCRIPTS_DATADOG: 'true' | |
#SFPOWERSCRIPTS_DATADOG_HOST: '${{ secrets.DATADOG_HOST }}' | |
#SFPOWERSCRIPTS_DATADOG_API_KEY: '${{ secrets.DATADOG_API_KEY }}' | |
jobs: | |
validate: | |
name: "Validate Changed Packages" | |
runs-on: ubuntu-latest | |
container: ghcr.io/dxatscale/sfpowerscripts | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: "Authenticate Dev Hub" | |
run: | | |
echo "${{ secrets.DEVHUB_SFDX_AUTH_URL }}" > ./authfile | |
sf org login sfdx-url -f authfile -a devhub | |
- name: "Configure Git for Hutte CLI" | |
run: | | |
git config --global --add safe.directory /__w/hutte-dxatscale/hutte-dxatscale | |
# Validate source and trigger test | |
# Note: Using Hutte pool org rather than DX@Scale Pool | |
- name: "Push source to Hutte scratch org from pool" | |
run: | | |
echo y | sf plugins install hutte #TODO: Use public Hutte Docker image in Github | |
sf hutte pool take --api-token "${{ secrets.HUTTE_API_TOKEN }}" --json --wait | |
echo $(sf org display --json) | |
poolOrgAlias=$(sf org display --json | jq -r '.result.alias') | |
echo $poolOrgAlias | |
sfp orchestrator:validateAgainstOrg --targetorg $poolOrgAlias --devhubalias ${{ vars.DEV_HUB_ALIAS }} |