GitHub Actions

This commit is contained in:
Geometrically
2020-12-24 18:48:50 -07:00
committed by GitHub
parent dff34a8ae2
commit 0b160a6741

32
.github/workflows/nuxt.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Nuxt CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Build Knossos
run: npm run build
- name: Run Lint
run: npm run lint