TJO/FJO #140
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: Acronym CI | |
# Validates formatting of acronym file | |
# Triggers the workflow on push or pull request events but only on PRs for the master branch | |
# Note: removed path filter as workaround for https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/troubleshooting-required-status-checks#handling-skipped-but-required-checks | |
on: | |
push: | |
paths: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: acronym-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run csvlint on acronyms file | |
run: bundle exec csvlint acronyms.csv |