You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add linting to build process and TAP to test process #8
Add a target, check, to the Makefile that will use gawk to lint using the --lint flag:
## Run GNU awk lint against maintained root AWK sources.check:
@command -v gawk >/dev/null 2>&1|| { printf'%s\n''gawk is required for make check'>&2;exit 1; }
@for sourcein$(AWK_SOURCES);do\printf'%s\n'"Linting $$source";\
gawk --lint=fatal -f "$$source"</dev/null >/dev/null;\done
When developing this tool, be sure to run make check to verify that code correctness.
The test target should not include linting. However, the output for test should be TAP-compliant. If it's not already formatted for TAP, please adjust the output for test to produce TAP.
Then, change the GitHub Action .github/workflows/semver.yml step that builds and validates the release artifact to include check:
- name: Validate maintained sourcerun: make check test-source
Note: these code sections were from a separate project's release action; they may not be byte-for-byte for what's in this repository.
Activity
[-]Lint AWK files[/-][+]Add linting to build process and TAP to test process[/+]