Skip to content

Update dependency eslint to v8.57.0 - autoclosed #558

Update dependency eslint to v8.57.0 - autoclosed

Update dependency eslint to v8.57.0 - autoclosed #558

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 14
uses: actions/setup-node@v3
with:
node-version: "14"
- name: Get NPM cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache NPM
uses: actions/cache@v3.0.4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-
- name: Install dependencies
run: npm ci
- name: Test Linux
run: xvfb-run -a npm test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 14
uses: actions/setup-node@v3
with:
node-version: "14"
- name: Get NPM cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache NPM
uses: actions/cache@v3.0.4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint