Skip to content

Bump json5 from 1.0.1 to 1.0.2 in /server #8

Bump json5 from 1.0.1 to 1.0.2 in /server

Bump json5 from 1.0.1 to 1.0.2 in /server #8

Workflow file for this run

name: Build
on:
push:
branches: [ develop ]
pull_request:
branches: [ master, develop ]
jobs:
lint-fe:
name: Lint Frontend
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node Modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: NPM install
run: npm install
working-directory: frontend
- name: Lint
working-directory: frontend
run: |
npm run lint
npm run typecheck
lint-server:
name: Lint Server
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node Modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: NPM install
run: npm install
working-directory: server
- name: Lint
working-directory: server
run: |
npm run lint
- name: Type Check
working-directory: server
run: |
npm run typecheck
test-server:
name: Run Tests for Server
runs-on: ubuntu-latest
needs: lint-server
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node Modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: NPM install
run: npm install
working-directory: server
- name: Tests
working-directory: server
run: |
npm run test