]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - .github/workflows/bundlewatch.yml
Fix bundlewatch branch base
[github/Chocobozzz/PeerTube.git] / .github / workflows / bundlewatch.yml
1 name: "Bundlewatch Github Action"
2
3 on:
4 push:
5 branches:
6 - develop
7 pull_request:
8 types: [synchronize, opened]
9
10 jobs:
11
12 bundlewatch:
13 runs-on: ubuntu-latest
14
15 env:
16 CI_BRANCH_BASE: develop
17
18 steps:
19 - uses: actions/checkout@v2
20
21 - name: Use Node.js
22 uses: actions/setup-node@v1
23 with:
24 node-version: '12.x'
25
26 - name: Cache Node.js modules
27 uses: actions/cache@v2
28 with:
29 path: |
30 **/node_modules
31 ~/fixtures
32 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
33 restore-keys: |
34 ${{ runner.OS }}-node-
35 ${{ runner.OS }}-
36
37 - name: Install dependencies
38 run: yarn install --frozen-lockfile
39
40 - name: Angular bundlewatch
41 uses: jackyef/bundlewatch-gh-action@master
42 with:
43 build-script: npm run build -- --analyze-bundle
44 branch-base: develop
45 bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}