Skip to content

Commit

Permalink
Merge pull request #12318 from danidoni/ensure-ci-runs-our-apidocs-li…
Browse files Browse the repository at this point in the history
…nter

Ensure the CI runs our apidocs linter
  • Loading branch information
danidoni committed Mar 16, 2022
2 parents fd3f549 + e8c1227 commit 38b302a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/conditional_config.yml
Expand Up @@ -189,7 +189,7 @@ jobs:
name: Run Documentation linter
command: |
cd src/api
find public/apidocs-new -name '*.yaml' | xargs -P8 -I % ruby -e "require 'yaml'; YAML.load_file '%'"
bundle exec rake dev:lint:apidocs
checkout_code:
docker:
Expand Down
2 changes: 1 addition & 1 deletion src/api/lib/tasks/dev.rake
Expand Up @@ -117,7 +117,7 @@ namespace :dev do
end
desc 'Run apidocs linter'
task :apidocs do
sh 'find public/apidocs-new -name \'*.yaml\' | xargs -P8 -I % ruby -e "require \'yaml\'; YAML.load_file \'%\'"'
sh 'find public/apidocs-new -name \'*.yaml\' | xargs -P8 -I % ruby -e "require \'yaml\'; YAML.load_file(\'%\', permitted_classes: [Time])"'
end
end

Expand Down

0 comments on commit 38b302a

Please sign in to comment.