mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 12:54:45 +00:00
Add e2e arch test
This commit is contained in:
parent
d6fea3c137
commit
05e7d6cc23
2 changed files with 24 additions and 0 deletions
11
__tests__/verify-arch.sh
Normal file
11
__tests__/verify-arch.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
architecture="$(node -e 'console.log(process.arch)')"
|
||||
if [ -z "$(echo $architecture | grep --fixed-strings $1)" ]; then
|
||||
echo "Unexpected architecture"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Skip testing architecture"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue