Skip to content

Commit 7cc5341

Browse files
author
Reinier van den Assum
authored
Merge branch 'apex-enterprise-patterns:master' into master
2 parents 575bf0f + 15590ee commit 7cc5341

File tree

58 files changed

+2044
-585
lines changed

Some content is hidden

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

58 files changed

+2044
-585
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
(A clear and concise description of what the bug is.)
12+
13+
**To Reproduce**
14+
15+
(Please provide a public github repo with a full SFDX project that demonstrates the problem. If the repro case can be followed with a single example Apex class against a scratch org with just the fflib-apex-common and fflib-apex-mocks project deployed into it, you don't need to provide a github repo)
16+
17+
Steps to reproduce the behavior:
18+
1. Create a scratch org as follows....
19+
2. Run the following Anonymous Apex....
20+
3. See error
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots and text of error observed**
26+
If applicable, add screenshots to help explain your problem. Also, paste the text of the raw error into the issue as well so that it can be found by others via search.
27+
28+
**Version**
29+
Did you try to reproduce the problem against the latest fflib-apex-common code?
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create a Scratch Org, Push Source and Run Apex Tests
2+
3+
on:
4+
push:
5+
pull_request_target:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
ref: ${{github.event.pull_request.head.ref}}
17+
repository: ${{github.event.pull_request.head.repo.full_name}}
18+
- name: Install SFDX CLI and authorize DevHub
19+
uses: apex-enterprise-patterns/setup-sfdx@v1 #We're using a fork of https://github.com/sfdx-actions/setup-sfdx for safety
20+
with:
21+
sfdx-auth-url: ${{ secrets.DEVHUB_SFDXURL }}
22+
- run: sfdx force:config:set defaultdevhubusername=SFDX-ENV -g #Even though the setup-sfdx action uses --setdefaultdevhubusername, it doesn't seem to stick since it uses --setdefaultusername so we brute force it here
23+
- run: echo y | sfdx plugins:install shane-sfdx-plugins
24+
- run: sfdx force:org:create -f config/project-scratch-def.json --setdefaultusername -d 1
25+
- run: sfdx shane:github:src:install -c -g apex-enterprise-patterns -r fflib-apex-mocks -p sfdx-source/apex-mocks
26+
- run: sfdx force:source:push
27+
- run: sfdx force:apex:test:run -w 5
28+
- name: Destroy scratch org
29+
run: sfdx force:org:delete -p
30+
if: always()
31+

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ Referenced Packages/
2828
.vscode/
2929
.history/
3030

31+
# IntelliJ IDE Related
32+
.idea/
33+
*.iml
34+
*.iws
35+
IlluminatedCloud/
36+
.project.license
37+
3138
# SFDX Related
3239
.sfdx/
3340
sfdx-source/common-base/main/default/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FFLib Apex Common
22
=================
33

4-
[![Build Status](https://travis-ci.org/apex-enterprise-patterns/fflib-apex-common.svg)](https://travis-ci.org/apex-enterprise-patterns/fflib-apex-common)
4+
![Push Source and Run Apex Tests](https://github.com/apex-enterprise-patterns/fflib-apex-common/workflows/Create%20a%20Scratch%20Org,%20Push%20Source%20and%20Run%20Apex%20Tests/badge.svg)
5+
56

67
**Dependencies:** Must deploy [ApexMocks](https://github.com/apex-enterprise-patterns/fflib-apex-mocks) before deploying this library
78

config/project-scratch-def.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"orgName": "apex-common",
33
"edition": "Developer",
44
"settings": {
5-
"orgPreferenceSettings": {
6-
"s1DesktopEnabled": true
5+
"lightningExperienceSettings": {
6+
"enableS1DesktopEnabled": true
77
}
88
}
99
}

sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
],
88
"namespace": "",
99
"sfdcLoginUrl": "https://login.salesforce.com",
10-
"sourceApiVersion": "48.0"
10+
"sourceApiVersion": "53.0"
1111
}

0 commit comments

Comments
 (0)