Skip to content

Commit f89451f

Browse files
committed
Add regression test
1 parent 3101ce6 commit f89451f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ jobs:
8282
echo "Expected: \"${{ matrix.version }}\", Got: \"${image_node_version}\""
8383
[ "${image_node_version}" == "${{ matrix.version }}" ]
8484
85+
- name: Verify entrypoint runs regular, non-executable files with node
86+
run: |
87+
tmp_file=$(mktemp)
88+
echo 'console.log("success")' > "${tmp_file}"
89+
output=$(docker run --rm -v "${tmp_file}:/app/index.js" node:${{ matrix.version }}-${{ matrix.variant }} app/index.js)
90+
[ "${output}" = 'success' ]
91+
8592
- name: Test for npm
8693
run: docker run --rm node:${{ matrix.version }}-${{ matrix.variant }} npm --version
8794

0 commit comments

Comments
 (0)