You've already forked AstralRinth
forked from didirus/AstralRinth
GitHub Actions
This commit is contained in:
32
.github/workflows/nuxt.yml
vendored
Normal file
32
.github/workflows/nuxt.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user