From d632a147293b36e46549a3ead754ef52d8fea735 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 Aug 2020 16:44:48 +0200 Subject: Test bundlewatch --- .github/workflows/bundlewatch.yml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/bundlewatch.yml (limited to '.github') 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 @@ +name: "Bundlewatch Github Action" + +on: + push: + branches: + - develop + pull_request: + types: [synchronize, opened] + +jobs: + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: | + **/node_modules + ~/fixtures + key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - uses: jackyef/bundlewatch-gh-action@master + with: + build-script: npm run build -- --analyze-bundle + bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} -- cgit v1.2.3