1
0
Fork 0

Limit github actions on PR

This commit is contained in:
Chocobozzz 2020-08-06 09:47:35 +02:00
parent d632a14729
commit fc3b14e413
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 9 additions and 2 deletions

View File

@ -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 }}

View File

@ -2,7 +2,11 @@ name: Test Suite
on:
push:
branches:
- develop
- master
pull_request:
types: [synchronize, opened]
schedule:
- cron: '0 3 * * 1-5'

View File

@ -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"