mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +00:00
CI: Linter: fix missing type info in tests
Full dependency installation is needed for types of third party dependencies to be available to the linter. Without this, some typescript-eslint error would not get triggered in the CI.
This commit is contained in:
parent
ede35e31a9
commit
a0a1648c94
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@ -191,18 +191,9 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: ESLint
|
name: ESLint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-node@v6
|
- uses: actions/setup-node@v6
|
||||||
- run: npm ci --ignore-scripts # linter
|
- run: npm ci # cannot use `--ignore-scripts` since the linter also relies on type information from third-party lib imports in the tests
|
||||||
- name: Retrieve cached folders
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
id: cache-full
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
dist
|
|
||||||
test/lib
|
|
||||||
key: cache-${{ github.sha }}
|
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user