Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
coverage:
precision: 2
round: down
range: "75...100"
status:
patch:
default:
# basic
target: auto
threshold: 10%
if_ci_failed: error #success, failure, error, ignore
project:
default:
target: auto
threshold: 10%
4 changes: 2 additions & 2 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Store secret for dev hub
- name: 'Populate auth file with DEVHUB_SFDX_URL secret'
Expand All @@ -60,7 +60,7 @@ jobs:

# Upload code coverage data
- name: 'Upload code coverage for Apex to Codecov.io'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3

# Housekeeping
- name: 'Delete scratch org'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

# Upload code coverage data
- name: 'Upload code coverage for Apex to Codecov.io'
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3

# Housekeeping
- name: 'Delete scratch org'
Expand All @@ -65,7 +65,7 @@ jobs:
steps:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3

# Check for package changes using git diff and looking for 'src' folder
- name: 'Check for package changes'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref }}

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Salesforce cache
.sfdx/
.sf/
.localdevserver/

# LWC VSCode autocomplete
Expand Down Expand Up @@ -35,4 +36,5 @@ ehthumbs.db
$RECYCLE.BIN/

# Local environment variables
.env
.env
.pmdCache
Binary file removed .pmdCache
Binary file not shown.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"trailingComma": "none",
"singleQuote": true,
"tabWidth": 4,
"printWidth": 140,
"overrides": [
{
"files": ["force-app/**/**/classes/*.cls"]
Expand Down
11 changes: 0 additions & 11 deletions force-app/main/default/aura/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion force-app/main/default/classes/CanTheUser.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>51.0</apiVersion>
<apiVersion>55.0</apiVersion>
<status>Active</status>
</ApexClass>
2 changes: 1 addition & 1 deletion force-app/main/default/classes/Safely.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>51.0</apiVersion>
<apiVersion>55.0</apiVersion>
<status>Active</status>
</ApexClass>
11 changes: 0 additions & 11 deletions force-app/main/default/lwc/.eslintrc.json

This file was deleted.

10 changes: 2 additions & 8 deletions force-app/main/default/tests/ApexRecipes_TestUtils.cls
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
public with sharing class ApexRecipes_TestUtils {
public static User createMinAccessUser(Boolean doInsert) {
Id profileId = [
SELECT Id
FROM Profile
WHERE Name = 'Minimum Access - Salesforce'
]
.Id;
Id profileId = [SELECT Id FROM Profile WHERE Name = 'Minimum Access - Salesforce'].Id;
return createTestUser(profileId, doInsert);
}

public static User createMarketingUser(Boolean doInsert) {
Id profileId = [SELECT Id FROM Profile WHERE Name = 'Marketing User']
.Id;
Id profileId = [SELECT Id FROM Profile WHERE Name = 'Marketing User'].Id;
return createTestUser(profileId, doInsert);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>52.0</apiVersion>
<apiVersion>55.0</apiVersion>
<status>Active</status>
</ApexClass>
2 changes: 1 addition & 1 deletion force-app/main/default/tests/CanTheUser_Tests.cls-meta.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>51.0</apiVersion>
<apiVersion>55.0</apiVersion>
<status>Active</status>
</ApexClass>
Loading