Skip to content

Update prescription fill days (#8) #50

Update prescription fill days (#8)

Update prescription fill days (#8) #50

Workflow file for this run

# 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+</"