1
0
Fork 0
peertube/.github/workflows/bundlewatch.yml
2021-02-10 11:36:40 +01:00

45 lines
1 KiB
YAML

name: "Bundlewatch Github Action"
on:
push:
branches:
- develop
pull_request:
types: [synchronize, opened]
jobs:
bundlewatch:
runs-on: ubuntu-latest
env:
CI_BRANCH_BASE: develop
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: |
**/node_modules
~/fixtures
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Angular bundlewatch
uses: jackyef/bundlewatch-gh-action@master
with:
build-script: npm run build -- --analyze-bundle
branch-base: develop
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}