fix: resolve CI lint and Jest config warnings
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-01-31 12:34:09 +00:00
parent a8db050852
commit 1a9ba57491

View File

@@ -11,19 +11,54 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: type-from-json/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
run: |
cd type-from-json
npm ci
- name: Run linting
run: |
cd type-from-json
npm run lint
- name: Run tests
run: npm test
run: |
cd type-from-json
npm test
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: type-from-json/package-lock.json
- name: Install dependencies
run: |
cd type-from-json
npm ci
- name: Build project
run: npm run build
run: |
cd type-from-json
npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: type-from-json/dist/