mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
node version on github actions pull requests
This commit is contained in:
parent
77b558d88b
commit
386b5351cd
1 changed files with 2 additions and 2 deletions
4
.github/workflows/package-pr.yaml
vendored
4
.github/workflows/package-pr.yaml
vendored
|
@ -107,7 +107,7 @@ jobs:
|
|||
echo $PACKAGES_JSON
|
||||
|
||||
echo Getting CLI ready
|
||||
docker run -v "$PWD/cli:/app" --entrypoint /bin/bash node:15 -c 'cd /app; npm i'
|
||||
docker run -v "$PWD/cli:/app" --entrypoint /bin/bash node:18 -c 'cd /app; npm i'
|
||||
|
||||
for package in $(jq -r '.[] | "\(.language)-\(.language_version)"' <<< "$PACKAGES_JSON")
|
||||
do
|
||||
|
@ -126,7 +126,7 @@ jobs:
|
|||
do
|
||||
TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript))
|
||||
echo Running $tscript with runtime=$TEST_RUNTIME
|
||||
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output
|
||||
docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:18 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output
|
||||
cat test_output
|
||||
grep "OK" test_output
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue