2020-09-28 22:04:20 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-09-29 09:16:36 +01:00
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build image
|
|
|
|
run: docker build . --tag notes
|
|
|
|
|
|
|
|
- name: Show image info
|
|
|
|
run: docker images
|
2020-09-28 22:04:20 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '14.x'
|
|
|
|
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: $HOME/.npm
|
|
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
run: npm run build
|