PeerTube/.github/workflows/bundlewatch.yml

46 lines
1.0 KiB
YAML
Raw Normal View History

2020-08-05 16:44:48 +02:00
name: "Bundlewatch Github Action"
on:
push:
branches:
- develop
pull_request:
types: [synchronize, opened]
jobs:
2020-08-06 10:26:39 +02:00
bundlewatch:
2020-08-05 16:44:48 +02:00
runs-on: ubuntu-latest
2020-08-06 10:26:39 +02:00
env:
CI_BRANCH_BASE: develop
2020-08-05 16:44:48 +02:00
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
2020-08-06 09:47:35 +02:00
- name: Angular bundlewatch
uses: jackyef/bundlewatch-gh-action@master
2020-08-05 16:44:48 +02:00
with:
build-script: npm run build -- --analyze-bundle
2021-02-10 11:35:49 +01:00
branch-base: develop
2020-08-05 16:44:48 +02:00
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}