Limit github actions on PR
This commit is contained in:
parent
d632a14729
commit
fc3b14e413
|
@ -34,7 +34,8 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- uses: jackyef/bundlewatch-gh-action@master
|
- name: Angular bundlewatch
|
||||||
|
uses: jackyef/bundlewatch-gh-action@master
|
||||||
with:
|
with:
|
||||||
build-script: npm run build -- --analyze-bundle
|
build-script: npm run build -- --analyze-bundle
|
||||||
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
|
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
|
||||||
|
|
|
@ -2,7 +2,11 @@ name: Test Suite
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [synchronize, opened]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 3 * * 1-5'
|
- cron: '0 3 * * 1-5'
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,9 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
|
||||||
done
|
done
|
||||||
fi
|
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
|
# Copy runtime locales
|
||||||
cp -r "./src/locale" "./dist/locale"
|
cp -r "./src/locale" "./dist/locale"
|
||||||
|
|
Loading…
Reference in New Issue