diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-22 23:25:21 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-12-22 23:35:19 +0300 |
commit | 67567a8e25cc2964abfc8a7fe92f1b6623529318 (patch) | |
tree | 8b92ec874c567ff60f22df18fce0a2c11e5e9be8 /.github | |
parent | f3774a99dcd9c1785fc3c8e82a5b043c0a518085 (diff) |
Try checking webpack build in github actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/nodejs.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 521ece8df..cda388715 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] + node-version: [12.x] steps: - uses: actions/checkout@v1 @@ -17,10 +17,15 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - name: npm install, build, and test + - name: npm install, build run: | - npm install + npm ci npm run build --if-present + - name: npm test + run: | npm test + - name: check webpack build + run: | + bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )" env: CI: true |