Skip to content

Commit 7e60fcd

Browse files
committed
Rename regression test and simplify
1 parent ee21b00 commit 7e60fcd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,11 @@ jobs:
8282
echo "Expected: \"${{ matrix.version }}\", Got: \"${image_node_version}\""
8383
[ "${image_node_version}" == "${{ matrix.version }}" ]
8484
85-
- name: Regression test for issue 1456
85+
- name: Verify endpoint executes regular files with node
8686
run: |
87-
mkdir temp
88-
echo 'console.log("success")' > temp/index.js
89-
output=$(docker run -w /app -v "$(pwd):/app" --rm node:${{ matrix.version }}-${{ matrix.variant }} temp/index.js)
90-
rm -r temp
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)
9190
[ "${output}" = 'success' ]
9291
9392
- name: Test for npm

0 commit comments

Comments
 (0)