From: Jérôme Benoit Date: Sun, 8 Nov 2020 16:02:40 +0000 (+0100) Subject: Add GitHub CI action. X-Git-Tag: v1.0.1-0~211 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=69d993b0661b3e61a734b83c0f0a7878c2bddfb4;p=e-mobility-charging-stations-simulator.git Add GitHub CI action. Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..d42c3e0b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install + run: npm ci + - name: npm run build:prod + run: npm run build:prod