Update prescription fill days (#8) #50
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
# continuous integration | |
# run tests for repo | |
--- | |
name: Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Install xmllint | |
run: sudo apt-get install libxml2-utils | |
- name: Lint XML | |
# use `xargs` instead of `find -exec` so non-0 exit codes are correctly returned | |
run: > | |
find 106/ 20170701/ | |
-name "*.xml" | |
! -name '*invalid*' | |
! -name '*error*' | |
| xargs xmllint --noout | |
- name: Check for extra whitespace at the start of elements | |
# invert exit code; grep normally returns 0 if match (linting issue) found | |
# use `xargs` instead of `find -exec` so non-0 exit codes are correctly returned | |
run: > | |
! find 106/ 20170701/ | |
-name "*.xml" | |
! -name '*invalid*' | |
! -name '*error*' | |
| xargs grep --perl-regexp ">\s\w+" | |
- name: Check for extra whitespace at the end of elements | |
# invert exit code; grep normally returns 0 if match (linting issue) found | |
# use `xargs` instead of `find -exec` so non-0 exit codes are correctly returned | |
run: > | |
! find 106/ 20170701/ | |
-name "*.xml" | |
! -name '*invalid*' | |
! -name '*error*' | |
| xargs grep --perl-regexp "\w\s+</" |