diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-05 16:44:48 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-06 09:42:33 +0200 |
commit | d632a147293b36e46549a3ead754ef52d8fea735 (patch) | |
tree | fb7124216a69b4b4a40e52b26eba964403c910d2 /.github/workflows/bundlewatch.yml | |
parent | c7a53f61212126fcad1b503003804a7468766a7f (diff) | |
download | PeerTube-d632a147293b36e46549a3ead754ef52d8fea735.tar.gz PeerTube-d632a147293b36e46549a3ead754ef52d8fea735.tar.zst PeerTube-d632a147293b36e46549a3ead754ef52d8fea735.zip |
Test bundlewatch
Diffstat (limited to '.github/workflows/bundlewatch.yml')
-rw-r--r-- | .github/workflows/bundlewatch.yml | 40 |
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 @@ | |||
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 | - uses: jackyef/bundlewatch-gh-action@master | ||
38 | with: | ||
39 | build-script: npm run build -- --analyze-bundle | ||
40 | bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | ||