-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# depcheck configuration | ||
# SEE https://www.npmjs.com/package/depcheck#api | ||
|
||
# if you add ignores also annotate why the package is ignored | ||
# keep list ordered at all times | ||
ignores: | ||
- "@commitlint/cli" | ||
- "@commitlint/config-angular" | ||
- "@istanbuljs/nyc-config-typescript" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: setup | ||
description: 'basic setup project with npm ci' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: setup nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
check-latest: true | ||
cache: npm | ||
- name: cache dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./node_modules | ||
key: node-modules-${{ runner.name }}-${{ runner.arch}}-${{ hashFiles('package-lock.json') }} | ||
- name: install dependencies | ||
run: npm ci --no-audit | ||
# only run npm ci when restoring the cache didn’t work to save some time | ||
# as npm ci would remove the node_modules again | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SEE https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
|
||
# Runs `npx depcheck` | ||
# | ||
# Depcheck is a tool for analyzing the dependencies in a project to see: how | ||
# each dependency is used, which dependencies are useless, and which | ||
# dependencies are missing from package.json. | ||
# | ||
# https://www.npmjs.com/package/depcheck | ||
|
||
name: depcheck | ||
|
||
on: | ||
# allow manual trigger workflow | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
# run only when one of the files matching the glob patterns changed | ||
- 'package.json' | ||
- 'package-lock.json' | ||
|
||
jobs: | ||
|
||
depcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup | ||
- run: npx depcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters