aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/bundlewatch.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/bundlewatch.yml')
-rw-r--r--.github/workflows/bundlewatch.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/bundlewatch.yml b/.github/workflows/bundlewatch.yml
new file mode 100644
index 000000000..94536c74e
--- /dev/null
+++ b/.github/workflows/bundlewatch.yml
@@ -0,0 +1,40 @@
1name: "Bundlewatch Github Action"
2
3on:
4 push:
5 branches:
6 - develop
7 pull_request:
8 types: [synchronize, opened]
9
10jobs:
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 - uses: jackyef/bundlewatch-gh-action@master
38 with:
39 build-script: npm run build -- --analyze-bundle
40 bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}