Skip to content

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc #10

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc

NXP-32573: added unit tests, refactored code, fixed warning box focus issue & added .npmrc #10

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- dev
workflow_call:
inputs:
branch:
description: 'The current branch'
default: dev
type: string
required: false
secrets:
NPM_PACKAGES_TOKEN:
description: 'NPM_PACKAGES_TOKEN'
required: true
env:
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'dev' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}
- uses: actions/setup-node@v3
with:
registry-url: 'https://packages.nuxeo.com/repository/npm-public/'
node-version: 18
scope: '@nuxeo'
- name: Install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm install
- name: Lint
run: npm run lint