]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - .github/workflows/bundlewatch.yml
Add joblog at the end of ci
[github/Chocobozzz/PeerTube.git] / .github / workflows / bundlewatch.yml
CommitLineData
d632a147
C
1name: "Bundlewatch Github Action"
2
3on:
4 push:
5 branches:
6 - develop
7 pull_request:
8 types: [synchronize, opened]
9
10jobs:
11
a3b5e78a 12 bundlewatch:
d632a147
C
13 runs-on: ubuntu-latest
14
a3b5e78a
C
15 env:
16 CI_BRANCH_BASE: develop
17
d632a147
C
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
fc3b14e4
C
40 - name: Angular bundlewatch
41 uses: jackyef/bundlewatch-gh-action@master
d632a147
C
42 with:
43 build-script: npm run build -- --analyze-bundle
44 bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}