diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml new file mode 100644 index 000000000..6426e6609 --- /dev/null +++ b/.github/workflows/ci-lint.yml @@ -0,0 +1,24 @@ +name: CI Lint + +on: [push, pull_request] + +jobs: + ci-lint: + name: Node Lint + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - name: Use Node + uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 + with: + node-version-file: '.nvmrc' + - name: Install + run: yarn install --immutable + - name: Format + run: yarn format:check + - name: Lint + run: yarn lint + - name: Lint Lockfile + run: yarn lint:lockfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 561444161..71ba34475 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,6 @@ jobs: node-version: ${{ matrix.node_version }} - name: Install run: yarn install --immutable - - name: Format - run: yarn format:check - - name: Lint - run: yarn lint - name: Build run: yarn build - name: Types diff --git a/package.json b/package.json index 5baae03e1..c3f01beac 100644 --- a/package.json +++ b/package.json @@ -107,6 +107,7 @@ "jest-config": "29.7.0", "jest-environment-node": "29.7.0", "jest-junit": "16.0.0", + "lockfile-lint": "4.13.2", "nock": "13.5.0", "prettier": "3.2.4", "rimraf": "5.0.5", @@ -145,6 +146,7 @@ "pre:ci": "yarn run lint", "lint:ts": "yarn run type-check", "lint": "eslint \"**/*.{js,jsx,ts}\" --max-warnings 145 -c ./eslintrc.js", + "lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --allowed-hosts verdaccio npm yarn", "start": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect", "start:brk": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect-brk", "start:debug": "yarn node debug/bootstrap.js", diff --git a/yarn.lock b/yarn.lock index 95c309d02..16c50062f 100644 Binary files a/yarn.lock and b/yarn.lock differ