Merge pull request #366 from finitehippopotamus/blockscan #892
This file contains hidden or 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
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| name: Validate bangs.json | |
| jobs: | |
| validate-bangs-json: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Validate JSON | |
| uses: walbo/[email protected] | |
| with: | |
| files: data/*bangs.json | |
| # optional, defaults to `$schema` in your JSON file | |
| schema: ./data/bangs.schema.json | |
| # optional, default: draft-04 | |
| schema-version: draft-07 | |
| # optional, default: false | |
| print-valid-files: true | |
| # optional, default: false | |
| fail-on-missing-schema: true | |
| # optional, default: true | |
| strict: true | |
| # optional, default: false | |
| allow-matching-properties: false | |
| # optional, default: true | |
| allow-union-types: true | |
| run-rspec-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| # Not needed with a .ruby-version file | |
| ruby-version: 3.0 | |
| # runs 'bundle install' and caches installed gems automatically | |
| bundler-cache: true | |
| - name: Run tests | |
| run: | | |
| bundle exec rspec |