[CUBRIDQA-1242] Add sort option on compare_result_between_files method #62
Workflow file for this run
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
name: github-checks | |
on: | |
pull_request: | |
branches: | |
- develop | |
- 'feature/**' | |
jobs: | |
code-style: | |
name: code-style | |
runs-on: ubuntu-20.04 | |
env: | |
working-directory: .github/workflows | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- id: files | |
uses: jitterbit/get-changed-files@v1 | |
continue-on-error: true | |
- name: Check code style | |
id: stylecheck | |
run: | | |
for f in ${{ steps.files.outputs.added_modified }}; do | |
${{ env.working-directory }}/codestyle.sh ${f} | |
done | |
git diff | tee gitdiff | |
test ! -s gitdiff # is empty? yes: 0 no: 1 | |
- name: Suggest code changes | |
if: ${{ failure() }} | |
uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: code-style (indent, astyle, google-java-format) |