Skip to content

CORE: fix file accept format (#1268) (#1269) #3066

CORE: fix file accept format (#1268) (#1269)

CORE: fix file accept format (#1268) (#1269) #3066

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