Creating build pipeline

This commit is contained in:
Patrick 2020-10-14 21:42:24 +02:00 committed by GitHub
parent af585b09b7
commit b36f2c948e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/master-betterzon.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci and npm run build
run: |
npm ci
npm run build:ci