Skip to content

Commit

Permalink
Merge 4b8f7b7 into 417fe32
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jan 18, 2022
2 parents 417fe32 + 4b8f7b7 commit 118bf74
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/test-build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test - Build Docs
on:
pull_request:
push:
branches:
- main

jobs:
test-build-docs:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version:
# List of supported node versions (latest is tested in `test-os`)
- 16.x

os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: |
package-lock.json
packages/*/package-lock.json
integration-tests/package-lock.json
- run: npm i -g npm@8
- run: npm -v
- run: npm ci
- run: npm run test-build-docs

# Ensure the repository is clean after build & test
- run: git --no-pager diff --compact-summary --exit-code
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"test-bin-spell-cache-content": "node ./bin.js -c cspellrc.json --cache --cache-strategy content",
"test-bin-spell-cache-metadata": "node ./bin.js -c cspellrc.json --cache --cache-strategy metadata",
"test-bin-trace": "node ./bin.js trace test",
"test-build-docs": "lerna run test-build-docs",
"test-integrations": "cd ./integration-tests && npm run integration-tests",
"test-schema": "ajv -s ./cspell.schema.json -d cspell.json -c ./packages/cspell-types/ajv.config.js",
"update-packages": "lerna exec \"npx npm-check-updates -t minor -u && rimraf node_modules package-lock.json && npm i\" && lerna bootstrap --no-ci",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"clean-build": "npm run clean && npm run build",
"compile": "tsc -p .",
"test-schema": "ajv -s ./cspell.schema.json -d \"cspell.test.{json,yaml}\" -c ./ajv.config.js",
"test": "jest && npm run test-schema && npm run test-build-docs",
"test": "jest && npm run test-schema",
"prepare": "npm run build"
},
"repository": {
Expand Down

0 comments on commit 118bf74

Please sign in to comment.