2
1

bundlewatch.yml 994 B

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