This file contains hidden or 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
const common = require('./common'); | |
const sfdx = require('sfdx-node/parallel'); | |
class apiIntegrate extends common { | |
constructor(page, element) { | |
super(page, element); | |
} | |
async login(popup, user, attempt = 0) { | |
if (attempt > 100) { | |
throw new Error('Login Retry count exceeded'); |
This file contains hidden or 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
const sfdx = require('sfdx-node/parallel') | |
const fs = require('fs') | |
const temp = require('temp'); | |
temp.track(); | |
const defaultUsers = [ | |
'Integration User', | |
'User User', | |
'Security User' | |
] | |
module.exports = { |
This file contains hidden or 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
name: aura && lwc lint | |
on: | |
push: | |
paths: | |
- 'myns/main/services/aura/**' | |
- 'myns/main/polyfills/aura/**' | |
- 'myns/main/default/aura/**' | |
- 'myns/main/default/staticresources/JS_Callbacks/**' | |
- 'myns/main/default/lwc/**' | |
- 'ui-tests/selenium/js/**' |
This file contains hidden or 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
name: PMD source check | |
on: [push] | |
jobs: | |
pmd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: krukmat/[email protected] | |
- run: npm run apex-pmd | |
This file contains hidden or 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
name: apex pretify | |
on: | |
push: | |
paths: | |
- 'myns/main/core/classes/**' | |
- 'myns/main/default/classes/**' | |
- 'myns/main/services/classes/**' | |
- 'myns/main/services/classes/tests/**' | |
- 'myns/tests/classes/**' | |
jobs: |
This file contains hidden or 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
# Push source, notify when done | |
alias dxp='sfdx force:source:push && osascript -e "display notification \"Push completed\""' | |
# Get an org list and show custom fields (devhub, instance URL) | |
alias dxl="sfdx force:org:list --verbose --json --skipconnectionstatus | jq -r '.result.scratchOrgs[] | [.defaultMarker, .alias, .username, .devHubUsername, .instanceUrl] | @tsv'" | |
# Set default username | |
dxd() { sfdx force:config:set defaultusername=$1 } | |
# Get tail of logs also while logging everything into file | |
alias dxtail="sfdx force:apex:log:tail | tee ../dxtail.log" | |
# Get tail of logs but only display System.debug (no multiline tho), exceptions or start of class | |
alias dxtaild="sfdx force:apex:log:tail --loglevel debug | grep -o 'USER_DEBUG.*\|EXCEPTION_THROWN.*\|CODE_UNIT_STARTED.*' --color=never" |
This file contains hidden or 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
name: sfdx test flow | |
on: [push] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
container: salesforce/salesforcedx | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install NPM modules |
This file contains hidden or 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
name: misc | |
on: [push] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install NPM modules | |
uses: bahmutov/npm-install@v1 |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
set -o pipefail | |
CLIENT_ID=$1 | |
rm -f ./server.key | |
cat > ./server.key | |
sfdx auth:jwt:grant --setdefaultusername --clientid "$CLIENT_ID" --jwtkeyfile ./server.key --username [email protected] -a HubOrg | |
sfdx force:org:create -v HubOrg -s -f ./config/project-scratch-def.json -d 1 -w 10 -a ciorg --noancestors |
This file contains hidden or 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
#!/bin/bash | |
# <bitbar.title>ping</bitbar.title> | |
# <bitbar.version>v1.1</bitbar.version> | |
# <bitbar.author>Trung Đinh Quang, Grant Sherrick and Kent Karlsson</bitbar.author> | |
# <bitbar.author.github>thealmightygrant</bitbar.author.github> | |
# <bitbar.desc>Sends pings to a range of sites to determine network latency</bitbar.desc> | |
# <bitbar.image>http://i.imgur.com/lk3iGat.png?1</bitbar.image> | |
# <bitbar.dependencies>ping</bitbar.dependencies> |