forked from forcedotcom/SalesforceMobileSDK-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
name: Pull Request | ||
|
||
on: | ||
# Dangerious without Member Check setep! | ||
# Dangerious without Member Check setep! | ||
pull_request_target: | ||
branches: | ||
- dev | ||
workflow_dispatch: "true" | ||
|
||
jobs: | ||
static-analysis: | ||
|
@@ -21,16 +22,17 @@ jobs: | |
# We need a sufficient depth or Danger will occasionally run into issues checking which files were modified. | ||
fetch-depth: 100 | ||
# This is dangerous without the member check | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Install Dependencies | ||
run: | | ||
npm install [email protected] | ||
./install.sh | ||
- name: Run Static Analysis | ||
# It would be nice to use xcbeaufity here but all the warnings and errors get annotated onto the PR, including | ||
# files not mofified in the PR which is annoying. | ||
run: xcodebuild analyze -workspace SalesforceMobileSDK.xcworkspace -scheme MobileSync -sdk 'iphonesimulator' \ | ||
CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR=./clangReport RUN_CLANG_STATIC_ANALYZER=YES | ||
# It would be nice to use xcbeaufity here but all the warnings and errors get annotated onto the PR, including | ||
# files not mofified in the PR which is annoying. | ||
run: | ||
xcodebuild analyze -workspace SalesforceMobileSDK.xcworkspace -scheme MobileSync -sdk 'iphonesimulator' \ | ||
CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR=./clangReport RUN_CLANG_STATIC_ANALYZER=YES | ||
- name: Report Static Analysis | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -55,7 +57,7 @@ jobs: | |
# We need a sufficient depth or Danger will occasionally run into issues checking which files were modified. | ||
fetch-depth: 100 | ||
# This is dangerous without the member check | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Determine Tests to Run | ||
id: test-orchestrator | ||
env: | ||
|
@@ -74,4 +76,4 @@ jobs: | |
uses: ./.github/workflows/reusable-workflow.yaml | ||
with: | ||
lib: ${{ matrix.lib }} | ||
secrets: inherit | ||
secrets: inherit |