Skip to content

CORE-4775: updates (#1058) #2709

CORE-4775: updates (#1058)

CORE-4775: updates (#1058) #2709

name: Pull request check
on: [push]
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v2
- name: Setup Node.js 14
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
lint:
name: Analyse code quality
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v2
- name: Setup Node.js 14
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint