diff --git a/.github/actions/init-integ-test/action.yml b/.github/actions/init-integ-test/action.yml index 8124f3e..4ef52d4 100644 --- a/.github/actions/init-integ-test/action.yml +++ b/.github/actions/init-integ-test/action.yml @@ -11,6 +11,7 @@ runs: # Downloads a 'dist' directory artifact that was uploaded in an earlier 'build-dist' step - name: Download dist + if: ${{ !env.ACT }} uses: actions/download-artifact@v4 with: name: dist diff --git a/build b/build index 01c22e1..eb576c6 100755 --- a/build +++ b/build @@ -3,8 +3,21 @@ cd sources npm install -if [ "$1" == "all" ]; then - npm run all -else - npm run build -fi +case "$1" in + all) + nprm run all + ;; + act) + # Build and copy outputs to the dist directory + npm run build + cd .. + cp -r sources/dist . + # Run act + $@ + # Revert the changes to the dist directory + git co -- dist + ;; + *) + npm run build + ;; +esac \ No newline at end of file