Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Limit github actions on PR

Chocobozzzfc3b14e413e4
diff --git a/.github/workflows/bundlewatch.yml b/.github/workflows/bundlewatch.yml
index 94536c74e0..312bf6e64a 100644
--- a/.github/workflows/bundlewatch.yml
+++ b/.github/workflows/bundlewatch.yml
@@ -34,7 +34,8 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile
- - uses: jackyef/bundlewatch-gh-action@master
+ - name: Angular bundlewatch
+ uses: jackyef/bundlewatch-gh-action@master
with:
build-script: npm run build -- --analyze-bundle
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 03b9257012..6edf3bf8c5 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -2,7 +2,11 @@ name: Test Suite
on:
push:
+ branches:
+ - develop
+ - master
pull_request:
+ types: [synchronize, opened]
schedule:
- cron: '0 3 * * 1-5'
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 75da6765c4..b2c2e3bfbc 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -154,7 +154,9 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
done
fi
-cd ../ && npm run build:embed && cd client/
+if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
+ cd ../ && npm run build:embed && cd client/
+fi
# Copy runtime locales
cp -r "./src/locale" "./dist/locale"