Skip to content

Commit e0f50b4

Browse files
committed
Add integration-tests to CI workflow
1 parent 9ed9418 commit e0f50b4

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: npm run lint
2727

2828
test:
29-
name: Test
29+
name: Test (Node)
3030
runs-on: ${{ matrix.operating-system }}
3131
strategy:
3232
fail-fast: false
@@ -52,8 +52,15 @@ jobs:
5252
- name: Test
5353
run: npm run test
5454

55+
- name: Test (Integration)
56+
# https://github.com/webpack/webpack/issues/14532
57+
if: ${{ matrix.node-version != '17' }}
58+
run: |
59+
cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
60+
cd ./tests/integration/webpack-test && ./test.sh && cd -
61+
5562
browser:
56-
name: Browser Tests
63+
name: Test (Browser)
5764
runs-on: 'ubuntu-latest'
5865
steps:
5966
- name: Checkout

tests/integration/multi-nodejs-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"private": true,
88
"license": "MIT",
99
"dependencies": {
10-
"handlebars": "file:../.."
10+
"handlebars": "file:../../.."
1111
},
1212
"scripts": {
1313
"test": "node run-handlebars.js",

tests/integration/multi-nodejs-test/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd "$( dirname "$( readlink -f "$0" )" )" || exit 1
1414
unset npm_config_prefix
1515

1616
echo "Handlebars should be able to run in various versions of NodeJS"
17-
for node_version_to_test in 0.10 0.12 4 5 6 7 8 9 10 11 12 13 14 15; do
17+
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
1818

1919
rm target node_modules package-lock.json -rf
2020
mkdir target

tests/integration/webpack-babel-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@roundingwellos/babel-plugin-handlebars-inline-precompile": "^3.0.1",
1313
"babel-loader": "^8.0.6",
1414
"babel-plugin-istanbul": "^5.2.0",
15-
"handlebars": "file:../..",
15+
"handlebars": "file:../../..",
1616
"handlebars-loader": "^1.7.1",
1717
"nyc": "^14.1.1",
1818
"webpack": "^4.39.3",

tests/integration/webpack-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "ISC",
1414
"dependencies": {},
1515
"devDependencies": {
16-
"handlebars": "file:../..",
16+
"handlebars": "file:../../..",
1717
"handlebars-loader": "^1.7.1",
1818
"webpack": "^4.39.3",
1919
"webpack-cli": "^3.3.7"

0 commit comments

Comments
 (0)