Skip to content

Commit 4a215a1

Browse files
authored
feature: global chain manager (#2)
1 parent 0725491 commit 4a215a1

File tree

85 files changed

+4345
-7545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+4345
-7545
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## _Who_ is the bug affecting?
2+
3+
<!-- Ex. All supervisors, Sally Supervisor, Level 1 CCs -->
4+
5+
## _What_ is affected by this bug?
6+
7+
<!-- Ex. supervision, sending messages, texter profiles -->
8+
9+
## _When_ does this occur?
10+
11+
<!-- Ex. After ending a conversation, every night at 3pm, when I sign off -->
12+
13+
## _Where_ on the platform does it happen?
14+
15+
<!-- Ex. In the a Supervisor chat box, on the conversation profile page, on the two-factor screen -->
16+
17+
## _How_ do we replicate the issue?
18+
19+
<!-- Please be specific as possible. Use dashes (-) or numbers (1.) to create a list of steps -->
20+
21+
## Expected behavior (i.e. solution)
22+
23+
<!-- What should have happened? -->
24+
25+
## Other Comments

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
<!--- Describe your changes in detail -->
6+
7+
## Motivation and Context
8+
9+
<!--- Why is this change required? What problem does it solve? -->
10+
<!--- If it fixes an open issue, please link to the issue here. -->
11+
12+
## How Has This Been Tested?
13+
14+
<!--- Please describe in detail how you tested your changes. -->
15+
<!--- Include details of your testing environment, tests ran to see how -->
16+
<!--- your change affects other areas of the code, etc. -->
17+
18+
## Screenshots (if appropriate):
19+
20+
## Types of changes
21+
22+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
23+
24+
- [ ] Bug fix (non-breaking change which fixes an issue)
25+
- [ ] New feature (non-breaking change which adds functionality)
26+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
27+
28+
## Checklist:
29+
30+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
31+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
32+
33+
- [ ] My code follows the code style of this project.
34+
- [ ] My change requires a change to the documentation.
35+
- [ ] I have updated the documentation accordingly.

.github/workflows/main.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
formatting-and-linting:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: "Checkout source code"
12+
uses: actions/checkout@v2
13+
14+
- uses: actions/cache@v2
15+
with:
16+
path: ~/.npm
17+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18+
restore-keys: |
19+
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
20+
21+
- name: "Install npm dependencies"
22+
run: npm install
23+
24+
- name: "Code formatting verification with Prettier"
25+
run: npm run prettier:verify
26+
27+
- name: Install PMD
28+
run: wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F6.22.0/pmd-bin-6.22.0.zip && unzip pmd-bin-6.22.0.zip
29+
30+
- name: Execute PMD
31+
run: pmd-bin-6.22.0/bin/run.sh pmd -minimumpriority 2 -d chain -R apex-ruleset.xml -f text -l apex
32+
33+
ci-build:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Install Salesforce CLI
37+
run: |
38+
wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz
39+
mkdir sfdx-cli
40+
tar xJf sfdx-linux-amd64.tar.xz -C sfdx-cli --strip-components 1
41+
./sfdx-cli/install
42+
43+
- name: Checkout
44+
uses: actions/checkout@v2
45+
46+
- name: "Populate auth file with CI_URL secret"
47+
shell: bash
48+
run: "echo ${{ secrets.CI_URL}} > ./CI_URL.txt"
49+
50+
- name: "Authenticate CI Sandbox"
51+
run: "sfdx force:auth:sfdxurl:store -f ./CI_URL.txt -a ci -d"
52+
53+
- name: 'Create scratch org'
54+
run: 'sfdx force:org:create -f config/project-scratch-def.json -a scratch-org -s -d 1'
55+
56+
- name: 'Push source to scratch org'
57+
run: 'sfdx force:source:push'
58+
59+
- name: 'Run Apex tests'
60+
run: npm run test:coverage
61+
62+
- name: 'Delete scratch org'
63+
if: always()
64+
run: 'sfdx force:org:delete -p -u scratch-org'

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.vscode
2-
.sfdx
2+
.sfdx
3+
tests
4+
node_modules/

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.sfdx
2+
.github
3+
.vscode
4+
coverage/
5+
tests/
6+
sfdx-project.json
7+
config/project-scratch-def.json

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "none",
3+
"singleQuote": true,
4+
"tabWidth": 2
5+
}

0 commit comments

Comments
 (0)