Skip to content

Commit

Permalink
[CI] Give the YAML validation steps a name (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyhtou authored Oct 7, 2024
1 parent 4711379 commit c24ff80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
run: bundle exec rspec
validate-yaml:
runs-on: ubuntu-latest
name: Validate merchants.yaml
name: Validate YAML
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install -g ajv-cli
- run: ajv -s lib/yellow_pages/merchants.schema.json -d lib/yellow_pages/merchants.yaml --errors=text
- run: ajv -s lib/yellow_pages/categories.schema.json -d lib/yellow_pages/categories.yaml --errors=text
- name: Validate merchants.yaml
run: ajv -s lib/yellow_pages/merchants.schema.json -d lib/yellow_pages/merchants.yaml --errors=text
- name: Validate categories.yaml
run: ajv -s lib/yellow_pages/categories.schema.json -d lib/yellow_pages/categories.yaml --errors=text

0 comments on commit c24ff80

Please sign in to comment.