]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - .github/workflows/bundlewatch.yml
Limit github actions on PR
[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 test:
13 runs-on: ubuntu-latest
14
15 steps:
16 - uses: actions/checkout@v2
17
18 - name: Use Node.js
19 uses: actions/setup-node@v1
20 with:
21 node-version: '12.x'
22
23 - name: Cache Node.js modules
24 uses: actions/cache@v2
25 with:
26 path: |
27 **/node_modules
28 ~/fixtures
29 key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
30 restore-keys: |
31 ${{ runner.OS }}-node-
32 ${{ runner.OS }}-
33
34 - name: Install dependencies
35 run: yarn install --frozen-lockfile
36
37 - name: Angular bundlewatch
38 uses: jackyef/bundlewatch-gh-action@master
39 with:
40 build-script: npm run build -- --analyze-bundle
41 bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}