Skip to content

Commit

Permalink
Add integration-tests to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jaylinski committed Dec 22, 2021
1 parent 932150f commit 1a67625
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: npm run lint

test:
name: Test
name: Test (Node)
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
Expand All @@ -52,8 +52,13 @@ jobs:
- name: Test
run: npm run test

- name: Test (Integration)
run: |
cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
cd ./tests/integration/webpack-test && ./test.sh && cd -
browser:
name: Browser Tests
name: Test (Browser)
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/multi-nodejs-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"license": "MIT",
"dependencies": {
"handlebars": "file:../.."
"handlebars": "file:../../.."
},
"scripts": {
"test": "node run-handlebars.js",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/multi-nodejs-test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd "$( dirname "$( readlink -f "$0" )" )" || exit 1
unset npm_config_prefix

echo "Handlebars should be able to run in various versions of NodeJS"
for node_version_to_test in 0.10 0.12 4 5 6 7 8 9 10 11 12 13 14 15; do
for node_version_to_test in 0.10 0.12 4 5 6 7 8 9 10 11 12 13 14 15 16 17; do

rm target node_modules package-lock.json -rf
mkdir target
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/webpack-babel-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@roundingwellos/babel-plugin-handlebars-inline-precompile": "^3.0.1",
"babel-loader": "^8.0.6",
"babel-plugin-istanbul": "^5.2.0",
"handlebars": "file:../..",
"handlebars": "file:../../..",
"handlebars-loader": "^1.7.1",
"nyc": "^14.1.1",
"webpack": "^4.39.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/webpack-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "ISC",
"dependencies": {},
"devDependencies": {
"handlebars": "file:../..",
"handlebars": "file:../../..",
"handlebars-loader": "^1.7.1",
"webpack": "^4.39.3",
"webpack-cli": "^3.3.7"
Expand Down

0 comments on commit 1a67625

Please sign in to comment.