mirror of
https://github.com/gradle/actions
synced 2024-11-30 13:22:15 +00:00
29 lines
No EOL
514 B
Bash
Executable file
29 lines
No EOL
514 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd sources
|
|
|
|
case "$1" in
|
|
all)
|
|
npm clean-install
|
|
nprm run all
|
|
;;
|
|
act)
|
|
# Build and copy outputs to the dist directory
|
|
npm install
|
|
npm run build
|
|
cd ..
|
|
cp -r sources/dist .
|
|
# Run act
|
|
$@
|
|
# Revert the changes to the dist directory
|
|
git co -- dist
|
|
;;
|
|
init-scripts)
|
|
cd test/init-scripts
|
|
./gradlew check
|
|
;;
|
|
*)
|
|
npm install
|
|
npm run build
|
|
;;
|
|
esac |