add github action to lint on push/pr

This commit is contained in:
Alex Bates 2020-08-18 00:35:18 +01:00
parent b5256e31ee
commit 0c318f87ab
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -23,7 +23,6 @@ jobs:
uses: trilom/file-changes-action@v1.2.4 uses: trilom/file-changes-action@v1.2.4
with: with:
output: ' ' output: ' '
continue-on-error: true # see jitterbit/get-changed-files#7
- run: ./format.sh ${{ steps.files.outputs.files}} - run: ./format.sh ${{ steps.files.outputs.files}}
# fail if any files were changed by ./format.sh # fail if any files were changed by ./format.sh
@ -34,6 +33,4 @@ jobs:
- name: Fail if any files reformatted - name: Fail if any files reformatted
if: steps.files_formatted.outputs.files_changed == 'true' if: steps.files_formatted.outputs.files_changed == 'true'
run: | run: exit 1
git diff
exit 1