Skip to content

Commit

Permalink
ci: bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpalves committed Sep 30, 2020
1 parent 562b375 commit 0504a7c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: action
name: test_action

on:
push:
Expand All @@ -14,13 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Swift Package Resolve
run: swift package resolve

- uses: arthurpalves/[email protected]
- uses: arthurpalves/[email protected]
with:
source: Sources
minimum_threshold: 60
ignore_output_result: true
only_changes: true
report_format: plain

16 changes: 8 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ runs:
- name: Prepare spec
shell: bash
run: |
echo -e "source: ${{ inputs.source }}\n" > coherent-swift.yml
echo -e "minimum_threshold: ${{ inputs.minimum_threshold }}\n" >> coherent-swift.yml
echo -e "reports_folder: ${{ inputs.reports_folder }}\n" >> coherent-swift.yml
echo -e "ignore_output_result: ${{ inputs.ignore_output_result }}\n" >> coherent-swift.yml
echo -e "report_format: ${{ inputs.report_format }}\n" >> coherent-swift.yml
echo -e "source: ${{ inputs.source }}\n" > ${{ github.action_path }}/_coherent-swift.yml
echo -e "minimum_threshold: ${{ inputs.minimum_threshold }}\n" >> ${{ github.action_path }}/_coherent-swift.yml
echo -e "reports_folder: ${{ inputs.reports_folder }}\n" >> ${{ github.action_path }}/_coherent-swift.yml
echo -e "ignore_output_result: ${{ inputs.ignore_output_result }}\n" >> ${{ github.action_path }}/_coherent-swift.yml
echo -e "report_format: ${{ inputs.report_format }}\n" >> ${{ github.action_path }}/_coherent-swift.yml
- name: Measure cohesion
shell: bash
run: |
cd ${{ github.action_path }}
if [[ ${{ inputs.only_changes}} == 'true' ]]; then
swift run coherent-swift report -d -s coherent-swift.yml
if [[ ${{ inputs.only_changes }} == 'true' ]]; then
swift run coherent-swift report -d -s _coherent-swift.yml
else
swift run coherent-swift report -s coherent-swift.yml
swift run coherent-swift report -s _coherent-swift.yml
fi

0 comments on commit 0504a7c

Please sign in to comment.