mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-10 08:33:58 +00:00
34 lines
687 B
YAML
34 lines
687 B
YAML
|
|
||
|
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
|