Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixes Add null checks for JSON stream #154#121

fixes Add null checks for JSON stream #154

fixes Add null checks for JSON stream #154 #121

name:Create a Scratch Org, Push Source and Run Apex Tests
on:
push:
pull_request_target:
workflow_dispatch:
jobs:
build:
runs-on:ubuntu-latest
steps:
-uses:actions/checkout@v2#Check out this repo
with:
ref:${{github.event.pull_request.head.ref}}
repository:${{github.event.pull_request.head.repo.full_name}}
-name:Install SF CLI and authorize DevHub
uses:apex-enterprise-patterns/setup-sfdx@v2#We're using a fork of https://github.com/sfdx-actions/setup-sfdx for safety
with:
sfdx-auth-url:${{ secrets.DEVHUB_SFDXURL }}
-name:Setup the config parameters needed
run:sf config set target-dev-hub SFDX-ENV --global#Even though the setup-sfdx action uses --setdefaultdevhubusername, it doesn't seem to stick since it uses --setdefaultusername so we brute force it here
-name:Create the scratch org
run:sf org create scratch --definition-file config/project-scratch-def.json --set-default --duration-days 1 --no-track-source
-name:Deploy and compile the codebase
run:sf project deploy start
-name:Run the core framework tests
run:sf apex run test --wait 5
-name:Destroy scratch org
run:sf org delete scratch --no-prompt
if:always()

[8]ページ先頭

©2009-2025 Movatter.jp