Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpage committed Nov 2, 2024
1 parent 2086d39 commit 0ad403a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/DangerStaticAnalysis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@


# Set Github Job output so we know which tests to run
File.write('../libs_to_run.txt', "libs=[#{modifed_libs.join(", ")}]")
# File.write('../libs_to_run.txt', "libs=[#{modifed_libs.join(", ")}]")
# `echo "libs=[ #{modifed_libs.join(", ")} ]" >> "$GITHUB_OUTPUT"`
# ENV['GITHUB_OUTPUT'] = "libs=[ #{modifed_libs.join(", ")} ]"
ENV['GITHUB_OUTPUT'] = "libs=[#{modifed_libs.join(", ")}]"

# files = Set[]
# for lib in modifed_libs;
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
./install.sh
- name: Static Analysis and Danger
if: ${{ github.event_name == 'pull_request' }} && (success() || failure())
id: danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -29,20 +30,20 @@ jobs:
cd .github
bundle update && bundle install
bundle exec danger --dangerfile=DangerStaticAnalysis.rb
- name: Test
run: cat libs_to_run.txt
- name: Set Libs Value
id: danger
run: echo "$(cat libs_to_run.txt)" >> $GITHUB_OUTPUT
- name: Test print
run: echo ${{ steps.danger.outputs.libs }}
# - name: Test
# run: cat libs_to_run.txt
# - name: Set Libs Value
# id: danger
# run: echo "$(cat libs_to_run.txt)" >> $GITHUB_OUTPUT
# - name: Test print
# run: echo ${{ steps.danger.outputs.libs }}

ios-pr:
needs: [static-analysis]
strategy:
fail-fast: false
matrix:
lib: ${{ needs.static-analysis.outputs.libs }}
lib: ${{ fromJson(needs.static-analysis.outputs.libs) }}
# lib: [SalesforceSDKCommon, SalesforceAnalytics, SalesforceSDKCore, SmartStore, MobileSync]
uses: ./.github/workflows/reusable-workflow.yaml
with:
Expand Down

0 comments on commit 0ad403a

Please sign in to comment.