Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
feat(validator): introduce schema validator (#35)
Browse files Browse the repository at this point in the history
closes #34
  • Loading branch information
derevnjuk authored Jul 10, 2020
1 parent 4447abb commit 46eb0bc
Show file tree
Hide file tree
Showing 25 changed files with 2,974 additions and 3,135 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tmp
node_modules
2 changes: 1 addition & 1 deletion .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
with:
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,44 @@ on:
- 'v*'

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
project_version: ${{ steps.project_version.outputs.value }}
project: ${{ steps.project.outputs.value }}
steps:
- id: project_version
run: echo ::set-output name=value::${GITHUB_REF/refs\/tags\//}
- id: project
run: echo ::set-output name=value::$(echo ${GITHUB_REPOSITORY#*/} | tr A-Z a-z)

deploy:
runs-on: ubuntu-latest
needs: prepare
env:
PROJECT: ${{ needs.prepare.outputs.project }}
VERSION: ${{ needs.prepare.outputs.project_version }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GPR_TOKEN }}

- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- run: npm version $RELEASE_VERSION --git-tag-version false
- run: npm ci

- run: npm version --no-git-tag-version "$VERSION"
- run: npm ci -q
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/setup-node@v1
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@NeuraLegion'

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
9 changes: 0 additions & 9 deletions __tests__/image.spec.js

This file was deleted.

52 changes: 0 additions & 52 deletions __tests__/multipart-form-data.spec.js

This file was deleted.

20 changes: 0 additions & 20 deletions __tests__/oas2har.spec.js

This file was deleted.

7 changes: 0 additions & 7 deletions __tests__/plain-text.spec.js

This file was deleted.

12 changes: 0 additions & 12 deletions __tests__/x-www-form-urlencoded.spec.js

This file was deleted.

Loading

0 comments on commit 46eb0bc

Please sign in to comment.