Skip to content

Commit

Permalink
feat(ci): ci scripts for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Aug 22, 2023
1 parent b35abb7 commit db1e92c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
steps:
- build_and_install:
node-version: <<parameters.node-version>>
- run: npm run lint
- run: npm run ci
- generate_and_store_version_and_filesystem_artifacts
unit-test:
parameters:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- lts/hydrogen
architecture:
- x64

name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -46,11 +46,11 @@ jobs:
${{ runner.os }}-${{ matrix.node_version }}-
- run: npm install --cache ~/.npm --no-audit --progress=false

- run: npm test
- run: npm run lint -- --quiet

- run: npm run ci

- name: Remove pr:platform label (if present)
if: always()
uses: actions/github-script@v6
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"lint:src": "eslint example src e2e --ext .js openmct.js --max-warnings=0 && eslint example src --ext .vue",
"lint:spelling": "cspell \"**/*.{js,md,vue}\" --show-context --gitignore",
"lint": "run-p lint:*",
"ci": "run-p \"lint:src -- --quiet\" \"lint:spelling -- --fail-fast --no-progress\"",
"fix:lint": "eslint example src e2e --ext .js,.vue openmct.js --fix",
"build:prod": "webpack --config ./.webpack/webpack.prod.js",
"build:dev": "webpack --config ./.webpack/webpack.dev.js",
Expand Down

0 comments on commit db1e92c

Please sign in to comment.