Skip to content

Commit

Permalink
ci(ajv): install ajv 7 and 8 on ci/cd for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Sep 12, 2021
1 parent cbe8169 commit a1911f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn install:ajv:versions
- run: yarn build
- run: yarn test
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- run: yarn install:ajv:versions
- run: yarn build
- run: yarn test
env:
Expand All @@ -41,6 +42,7 @@ jobs:
with:
node-version: 14
- run: yarn
- run: yarn install:ajv:versions
- run: yarn build
- run: yarn test
env:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"dist"
],
"scripts": {
"install:ajv-7": "cd ajv-versions/v-7 && yarn",
"install:ajv-8": "cd ajv-versions/v-8 && yarn",
"install:ajv:versions": "yarn install:ajv-7 && yarn install:ajv-8",
"build": "rimraf dist && tsc -p tsconfig.prod.json",
"test:all": "NODE_OPTIONS=--experimental-vm-modules FORCE_COLOR=0 FORCE_HYPERLINK=1 jest",
"get:snapshot:sha": "shasum lib/__snap*/*.snap ajv-versions/v-*/__snap*/*.snap",
Expand Down

0 comments on commit a1911f4

Please sign in to comment.