From 4cca8636c3ca4ad99383813fe1cddaf664b179dd Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Sat, 28 Aug 2021 05:59:02 +0900 Subject: [PATCH] ci: run `yarn build` on test (#3202) * build: fail rollup on warning * ci: run yarn build on test --- .github/workflows/ci.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a96a93c..12f79401 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,9 @@ jobs: run: yarn test:jest --coverage if: always() + - name: Build + run: yarn build + - uses: codecov/codecov-action@v2 with: directory: ./coverage/ diff --git a/package.json b/package.json index 68483c71..b34c85f5 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "clean-install": "yarn clean && yarn", "start": "webpack serve --config webpack.dev.js", "analyze": "webpack --config webpack.analyze.js", - "build": "rimraf dist/ && mkdirp dist && cp README.md dist && rollup -c && webpack && node update-sri.js package dist/README.md", + "build": "rimraf dist/ && mkdirp dist && cp README.md dist && rollup -c --failAfterWarnings && webpack && node update-sri.js package dist/README.md", "watch": "yarn build --watch", "postversion": "yarn dist && node update-sri.js package README.md contrib/*/README.md docs/*.md website/pages/index.html", "semantic-release": "semantic-release",