Skip to content

Commit

Permalink
running all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tambien committed Apr 25, 2024
1 parent 5d910ca commit 51dc876
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
branches:
- dev
jobs:
all-tests:
run-tests:
name: All tests
permissions:
contents: read
id-token: write
Expand All @@ -25,4 +26,46 @@ jobs:
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
run: npm run build
- name: All tests
run: npm run test
test-code-examples:
name: Test inline typedoc examples
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: 18.12.0
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build Docs
run: npm run build && npm run docs:json
- name: Code example tests
run: npm run test:examples
test-html-examples:
name: Test HTML Examples
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: 18.12.0
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build Docs
run: npm run build
- name: Code example tests
run: npm run test:html
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "npm run increment && rm -rf build && npm run ts:build && npm run webpack:build",
"codecov": "codecov",
"docs": "node scripts/generate_docs.cjs",
"docs:json": "cross-var typedoc --options \"./scripts/typedoc.json\" --json \"$npm_config_docs_json\"",
"docs:json": "cross-var typedoc --options \"./scripts/typedoc.json\" --json \"./docs/tone.json\"",
"increment": "node scripts/increment_version.cjs",
"karma": "cross-var karma start ./test/karma.conf.cjs --single-run --file $npm_config_file --dir $npm_config_dir",
"karma:browser": "cross-var karma start ./test/karma.conf.cjs --auto-watch --browsers OnlineChrome --file $npm_config_file --dir $npm_config_dir",
Expand Down

0 comments on commit 51dc876

Please sign in to comment.