mirror of https://github.com/Chocobozzz/PeerTube
Limit github actions on PR
parent
d632a14729
commit
fc3b14e413
|
@ -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 }}
|
||||
|
|
|
@ -2,7 +2,11 @@ name: Test Suite
|
|||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
- master
|
||||
pull_request:
|
||||
types: [synchronize, opened]
|
||||
schedule:
|
||||
- cron: '0 3 * * 1-5'
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue