Skip to content

Commit

Permalink
Merge pull request #50 from ahokkonen/master
Browse files Browse the repository at this point in the history
Added new stoplight/spectral linter based validation action and made minor refactoring to speccy action
  • Loading branch information
cookeac authored Nov 28, 2019
2 parents 875b30b + 1adc11d commit 4dea0a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ValidateWithSpeccy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: validate JSON URL scheme
run: |
docker run wework/speccy lint -v -j https://raw.githubusercontent.com/${{github.repository}}/master/Release%20Candidate%20Messages/exampleUrlScheme.json
docker run wework/speccy lint -v -j https://raw.githubusercontent.com/${{github.repository}}/${GITHUB_REF##*/}/Release%20Candidate%20Messages/exampleUrlScheme.json
13 changes: 13 additions & 0 deletions .github/workflows/ValidateWithSpectral.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spectral JSON Validation CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: validate JSON URL scheme
run: |
docker run stoplight/spectral lint https://raw.githubusercontent.com/${{github.repository}}/${GITHUB_REF##*/}/Release%20Candidate%20Messages/exampleUrlScheme.json -v

0 comments on commit 4dea0a8

Please sign in to comment.