Skip to content

Commit

Permalink
chore(test): wire test/ to ci
Browse files Browse the repository at this point in the history
this commit adds building most projects in the `test/` dir to stencil's
ci system. the `test/package.json` is updated to include the
`browser-compile` subdir, as well as a few script renames. those script
names are propagated up to the project's root level `package.json` so
that they may be called one of two ways:

1. in ci via `test.analysis`
2. locally as a part of the 'test all' script, `test.prod`
  • Loading branch information
rwaskiewicz committed Mar 4, 2022
1 parent 6104dbc commit 97fe0a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
if: matrix.os != 'windows-latest'
run: npm run test.sys.node

- name: Test analysis
run: npm run test.analysis

- name: Pack build artifacts
if: matrix.os != 'windows-latest'
run: mv `npm pack` stencil-build.tgz
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"prettier.base": "prettier \"./{bin,scripts,src,test}/**/*.{ts,tsx,js,jsx}\"",
"prettier.dry-run": "npm run prettier.base -- --list-different",
"test": "jest --coverage",
"test.analysis": "cd test && npm run build",
"test.analysis": "cd test && npm run analysis.build-and-analyze",
"test.dist": "node scripts --validate-build",
"test.end-to-end": "cd test/end-to-end && npm ci && npm test && npm run test.dist",
"test.jest": "jest",
"test.karma": "cd test/karma && npm ci && npm run karma",
"test.karma.prod": "cd test/karma && npm ci && npm run karma.prod",
"test.testing": "node scripts/test/validate-testing.js",
"test.sys.node": "echo test.sys.node",
"test.prod": "npm run test.dist && npm run test.end-to-end && npm run test.jest && npm run test.karma && npm run test.sys.node && npm run test.testing",
"test.prod": "npm run test.dist && npm run test.end-to-end && npm run test.jest && npm run test.karma && npm run test.sys.node && npm run test.testing && npm run test.analysis",
"test.watch": "jest --watch",
"test.watch-all": "jest --watchAll --coverage"
},
Expand Down
11 changes: 7 additions & 4 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
"name": "stencil-test",
"private": true,
"scripts": {
"analysis": "node ./.scripts/analysis.js",
"build": "npm run build.hello-world && npm run build.hello-vdom && npm run build.todo && npm run build.end-to-end && npm run build.ionic && npm run analysis",
"TODO-STENCIL-389": "echo Remove the exit call below",
"analysis": "exit 0 && node ./.scripts/analysis.js",
"analysis.build-and-analyze": "npm run build && npm run analysis",
"build": "npm run build.browser-compile && npm run build.hello-world && npm run build.hello-vdom && npm run build.todo && npm run build.end-to-end && npm run build.ionic",
"build.browser-compile": "cd ./browser-compile && npm run build",
"build.end-to-end": "cd ./end-to-end && npm run build",
"build.hello-world": "cd ./hello-world && npm run build",
"build.hello-vdom": "cd ./hello-vdom && npm run build",
"build.ionic": "cd ./ionic-app && npm run build",
"build.todo": "cd ./todo-app && npm run build"
"build.ionic": "exit 0 && cd ./ionic-app && npm ci && npm run build",
"build.todo": "exit 0 && cd ./todo-app && npm ci && npm run build"
},
"devDependencies": {
"brotli": "^1.3.2"
Expand Down

0 comments on commit 97fe0a8

Please sign in to comment.