diff --git a/.cspell.json b/.cspell.json index 59c785dd423..1f22450a4b0 100644 --- a/.cspell.json +++ b/.cspell.json @@ -21,7 +21,8 @@ "sandboxed", "transpiled", "typedoc", - "untracked" + "untracked", + "notifire" ], "flagWords": [], "ignorePaths": [ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000000..4c3942eaa5f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +name: Test Library +on: [push] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - run: rm -rf build + - run: yarn install + - run: yarn test diff --git a/package.json b/package.json index ae7562ce11a..89c3dbf6c26 100644 --- a/package.json +++ b/package.json @@ -19,12 +19,12 @@ "test:lint": "eslint src --ext .ts", "test:prettier": "prettier \"src/**/*.ts\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", - "test:unit": "jest", + "test:unit": "jest src", "check-cli": "run-s test diff-integration-tests check-integration-tests", "check-integration-tests": "run-s check-integration-test:*", "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'", "watch:build": "tsc -p tsconfig.json -w", - "watch:test": "jest --watch", + "watch:test": "jest src --watch", "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html", "cov:html": "nyc report --reporter=html", "cov:lcov": "nyc report --reporter=lcov",