2020-02-28 10:26:27 +00:00
|
|
|
name: Node
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-06-14 05:28:17 +00:00
|
|
|
name: node
|
2020-02-28 10:26:27 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-06-14 05:28:17 +00:00
|
|
|
- name: Set up node
|
|
|
|
uses: actions/setup-node@v2
|
2020-02-28 10:26:27 +00:00
|
|
|
with:
|
2021-06-14 05:28:17 +00:00
|
|
|
node-version: 14
|
|
|
|
|
|
|
|
- name: Set up npm7
|
|
|
|
run: npm i -g npm@7
|
2020-02-28 10:26:27 +00:00
|
|
|
|
|
|
|
- name: Install dependencies & build
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run build --if-present
|
|
|
|
|
|
|
|
- name: Check webpack build changes
|
|
|
|
run: |
|
|
|
|
bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
|